Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6010877
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T02:10:45+00:00 2026-05-23T02:10:45+00:00

I have a XNA 3.1 app on Windows 7 x64 with VS 2008. At

  • 0

I have a XNA 3.1 app on Windows 7 x64 with VS 2008. At ~7 seconds the window will go gray if the game does not have focus (sometimes!). The title adds Not Responding. If the game has focus, the window may slightly change position on the screen, and the application icon on my tray moves over as if it is opening a new program.
This only happens for a split second, and then the application icon moves back to its original position. It does this in both debug, and release mode. This is strange because the application is not stuck in any loop as far as I can tell. If I go into VS and pause the code while it is not responding it shows me the Instance.Run in the Program class like it should. I have tried pausing it at that exact moment;

The call stack looks like:
[In a sleep, wait, or join]
External Code. ->
mscorlib.dll!System.Threading.Thread.Sleep(int millisecondsTimeout) + 0x5 bytes
Microsoft.Xna.Framework.Game.dll!Microsoft.Xna.Framework.Game.Tick() + 0x98 bytes
Microsoft.Xna.Framework.Game.dll!Microsoft.Xna.Framework.Game.HostIdle(object sender…
Microsoft.Xna.Framework.Game.dll!Microsoft.Xna.Framework.GameHost.OnIdle() + 0x3d bytes
… and so on.

If I hit run while paused, the program will work and unfreeze. The application will not unfreeze itself once it goes into this non-responsive mode. All sounds continue to work when it is not responding.

Additionally, I have a method that overrides the OnDeactivated() event and it gets called when the app loses responsiveness even though the application will HAVE focus. I have tried installing the latest drivers for my graphics card, but that failed to fix this problem. This issue also happens when running the executable without VS. Like I said, this issue happens ~ 75% of the time… otherwise it works fine.

I have found only one forum post regarding this issue:
http://forums.create.msdn.com/forums/p/56743/346180.aspx

It looks like it was never resolved.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T02:10:46+00:00Added an answer on May 23, 2026 at 2:10 am

    Turns out I was checking Mediaplayer.State in an Update() method, and due to my profiler, I found the issue. MediaPlayer.State is an expensive enum to retrieve, and once I removed that block it no longer hangs.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have a problem with the stopping of a windows phone xna game. i
I'm working with xna in C# and in my game I will have a
I am developing a game for Windows Phone 7 using XNA, and I have
I have XNA game and it contains these classes public partial class Bird :
I have an XNA arcade game which runs over Silverlight environment. The game has
I have a WP7 XNA game that needs to save the state whenever the
I have a game in XNA which needs to do network calls. In the
I have just completed my game with C# XNA 4.0 and when I compile
I created a simple 2D game in XNA for Windows and Xbox. I'm in
Where do I start for this game? I do have xna studio. But I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.