Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

cs4life

newb having problems with window focus

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

hey folks...didnt know where to put this post, but, here it is my problem is this: everything seems to be working ok, but when the focus of my window gets killed, stuff blows up. if i click away from the window and click right back, everything works, but if i click away from the window and wait for a few seconds, my program crashes. the specific error i''m getting is ''stack around the variable ''something'' is corrupted. the thing that i dont get is the variable is in a function that doesnt even get called when the game window doesnt currently have the focus. maybe it''s a synchronization problem, i dunno. anyway, any help would be appreciated, thanks in advance

Share this post


Link to post
Share on other sites
Advertisement
bleh...this is what i had

void setWinFocus(bool focus) {
HAS_FOCUS = true;
}

too much coding...think it''s time to get some rest now

Share this post


Link to post
Share on other sites

  • 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!