Sign in to follow this  
Dissipate

Save Level causes a freeze. Mouse click unfreezes

Recommended Posts

Hi,

 

Please may I ask for your help on the following problem:

 

Language: C++, DirectX, Win32

Program description: Simple full-screen tile and display.

Problem: SaveLevel() (exits with no errors) causes the screen to freeze. So no on-screen debug info being updated.

Temp resolution: Left-clicking the mouse results in normal operation. The seconds counter continues with the correct info as if it ran in the BG.

My guess: Is the window loosing focus somehow by the save function which uses fprintf() calls to write out text information?

 

I tried testing for it loosing focus by running in windowed mode. The app did not freeze when clicking between windows (ie. notepad + app). But it did freeze when saving in windowed mode. Btw I really should be using fprintf_s() instead.

 

Thanks...

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this