Archived

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

cs4life

newb having problems with window focus

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