Jump to content
  • Advertisement
Sign in to follow this  

Save Level causes a freeze. Mouse click unfreezes

This topic is 2061 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



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.



Share this post

Link to post
Share on other sites

** 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

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!