Page 1 of 1

crash in WinMain(HINSTANCE__

Posted: Sun Oct 10, 2010 1:13 pm
by MoonKid
I have a mysterios crash in my application. I am using wx from SVN. I have a main-frame window and open a dialog-window from it. Close it ok. After reopen the same window the application crash.

This is the call stack that doesn't help me. Because I can not found the concret location in my code.

Code: Select all

>	blackfisk_Debug Dynamic_msvc.exe!WinMain(HINSTANCE__ * hInstance=0x01240000, HINSTANCE__ * hPrevInstance=0x00000000, char * __formal=0x00502f6e, int nCmdShow=1)  Zeile 46 + 0x34 Bytes	C++
 	blackfisk_Debug Dynamic_msvc.exe!__tmainCRTStartup()  Zeile 578 + 0x35 Bytes	C
 	blackfisk_Debug Dynamic_msvc.exe!WinMainCRTStartup()  Zeile 403	C
If I open the dialog only one time. Close it. And then close the main-frame (incl. application) itself there is the same crash.

Posted: Mon Oct 11, 2010 1:12 pm
by briceandre
Hard to say without the code. Is it possible to post it ?

Did you check the way windows are destroyed ? Are you sure you are not using a previously destroyed window ?