Jump to content
  • Advertisement
Sign in to follow this  
argonaut

Another HGE question [solved]

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

OK, I realize not that many people use this engine (I'm starting to regret it too). I appreciate it if someone who has experience can take a look at this problem. Using version 1.7, every time I delete a gui control, the game crashes the next time gui->update() is called. I've been working with this damn thing for a couple of days, so anyone who can help, please drop me a line. ** edit: To be a little more specific, it only crashes (with a c00000005 exception) when I delete a ctrl that was the last clicked. SetFocus does nothing. ** edit: Since this isn't covered anywhere in the documentation, the solution is:

gui->update(dt);
gui->DelCtrl(id);
gui->Leave();         // lock (leave) the gui first
gui->SetFocus(1);     // reset the focus to a new id
gui->Enter();         // unlock (enter) the gui

[/SOURCE]
[Edited by - argonaut on June 5, 2007 10:38:06 PM]

Share this post


Link to post
Share on other sites
Advertisement
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!