• Advertisement
Sign in to follow this  

Save Level causes a freeze. Mouse click unfreezes

This topic is 1885 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement

** SOLVED **

 

Resolution: F10 causes the window to do something. I tried F2 and it works fine.

Reason: This thread explains why and other better ways to overcome.

 

Thanks everyone for your valuable and speedy input *(iCheesyGrin)

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement