crash destroying widgets

Captain_Deathbeard

14-07-2007 03:29:30

Whenever I try to destroy a widget, eg

Panel::destroyButton()
GUIManager::destroySheet()
and most others too

I get a crash leading to somewhere in the middle of Widget::~Widget() (line 75)

mUserEventHandlers.clear();



the crash says :

Windows has triggered a breakpoint in forgotten_d.exe.

This may be due to a corruption of the heap, and indicates a bug in forgotten_d.exe or any of the DLLs it has loaded.


I built QuickGUI using ogre source 1.4.3.

Any ideas? Can anyone reproduce the crash?

kungfoomasta

14-07-2007 10:37:40

Hm, that line in my code is 82. (Although I have some extra stuff.. but it should be around line 80)

Try downloading the latest release from here:
http://www.ogre3d.org/phpBB2addons/viewtopic.php?t=4822

If that still crashes, I'll need to see some code. I haven't gotten the chance to delete widgets..

Captain_Deathbeard

15-07-2007 17:33:02

yes, it still crashes

kungfoomasta

15-07-2007 23:00:39

I will look into it when I get the chance. I'll modify the demo code so that when I press a certain key, a widget is deleted.

May be a few days, or a little more.