delete window crash

Zini

22-08-2007 15:53:22

I am currently experiencing a crash, when trying to delete a window. Is using delete still the right way to do this? I can't find any other method with the current version of QuickGUI.

The log doesn't show anything and no, I am not trying to let a window delete itself.

Here is a backtrace, if that is any help:

#0 6935B71E ZN8QuickGUI12VertexBuffer6updateEv() (C:\code\TinEngine\Core\Test\QuickGUI.dll:??)

#1 6934D9CF ZN8QuickGUI17RenderObjectGroup6renderEv() (C:\code\TinEngine\Core\Test\QuickGUI.dll:??)

#2 6934DAC0 ZN8QuickGUI17RenderObjectGroup6renderEv() (C:\code\TinEngine\Core\Test\QuickGUI.dll:??)

#3 6933A386 ZN8QuickGUI10GUIManager18renderQueueStartedEhRKSsRb() (C:\code\TinEngine\Core\Test\QuickGUI.dll:??)

#4 65127B9A ZN4Ogre12SceneManager22fireRenderQueueStartedEhRKSs() (C:\code\TinEngine\Core\Test\OgreMain.dll:??)

#5 65127C87 ZN4Ogre12SceneManager35renderVisibleObjectsDefaultSequenceEv() (C:\code\TinEngine\Core\Test\OgreMain.dll:??)

#6 65134FD9 ZN4Ogre12SceneManager12_renderSceneEPNS_6CameraEPNS_8ViewportEb() (C:\code\TinEngine\Core\Test\OgreMain.dll:??)

#7 6A2D4A65 ZN4Ogre19TerrainSceneManager12_renderSceneEPNS_6CameraEPNS_8ViewportEb() (C:\code\TinEngine\Core\Test\Plugin_OctreeSceneManager.dll:??)

#8 64F30253 ZN4Ogre6Camera12_renderSceneEPNS_8ViewportEb() (C:\code\TinEngine\Core\Test\OgreMain.dll:??)

#9 651B2A96 ZN4Ogre8Viewport6updateEv() (C:\code\TinEngine\Core\Test\OgreMain.dll:??)

#10 650FA9B3 ZN4Ogre12RenderTarget6updateEv() (C:\code\TinEngine\Core\Test\OgreMain.dll:??)

#11 650FEEAB ZN4Ogre12RenderWindow6updateEb() (C:\code\TinEngine\Core\Test\OgreMain.dll:??)

#12 66F829C0 dllStopPlugin() (C:\code\TinEngine\Core\Test\RenderSystem_Direct3D9.dll:??)

#13 650FEE8D ZN4Ogre12RenderWindow6updateEv() (C:\code\TinEngine\Core\Test\OgreMain.dll:??)

#14 650F5DB2 ZN4Ogre12RenderSystem23_updateAllRenderTargetsEv() (C:\code\TinEngine\Core\Test\OgreMain.dll:??)

#15 65124E41 ZN4Ogre4Root14startRenderingEv() (C:\code\TinEngine\Core\Test\OgreMain.dll:??)

#16 004177D8 tcf::engine::Invoke(this=0x22fee0) (C:/code/TinEngine/Core/scr/tcf/Engine.cpp:478)

#17 00403BCC main(argc=1, argv=0x3d9420) (C:/code/TinEngine/Core/scr/Main.cpp:83)

kungfoomasta

22-08-2007 19:11:52

I remember making some changes to the code to hopefully fix problems with deleting widgets, but I don't remember if my last release had that code. Also, I have created GUIManager::destroyWidget, which is designed to be safe, even if you have an event handler that wants to destroy the widget handling the event. I am pushing to release this very soon.