Hopper - Test was skipped for more than 30 minutes - Error RRS feed

  • Question

  • Hi,

    I'm working on a game in C# that's using a fullscreen window, DirectDraw and p/invoke to access native calls. When running the hopper test I'm getting the "Test was skipped for more than 30 minutes" error. According to http://channel9.msdn.com/wiki/CEDeveloper/BSPHopperInvestigation/ this means that "Hopper was not able to run for more than 30 minutes. Hopper runs at 1 priority level above normal priority. This failure typically indicates a thread starvation condition caused by a higher priority thread spinning."

    So, in the main loop I added:
    - System.Threading.Thread.Sleep(100); // sleep for 100 mSec every game cycle.
    Before the main loop I added:
    - System.Threading.Thread.CurrentThread.Priority = System.Threading.ThreadPriority.Lowest; // change thread priority to lowest setting?

    Unfortunately, the problem is still occurring. What's interesting though, is that the game is fully responsive to input from the user however hopper seems to be unable to send events to the game.

    Is there something different or additional approach I should be doing to accommodate hopper so that it can get events into the app?

    I also observed the "Start menu not responding" error.

    I found a possible lead to fixing the "Start menu not responding" issue at http://blogs.msdn.com/raffael/archive/2008/02/25/hopper-start-menu-dead-not-responding.aspx

    Is it possible that "Start menu not responding" and "Test was skipped for more than 30 minutes" are related?

    Best regards,

    Saturday, November 14, 2009 12:00 AM