crash in WinMain(HINSTANCE__ Topic is solved

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
MoonKid
Ultimate wxWidgets Guru
Ultimate wxWidgets Guru
Posts: 543
Joined: Wed Apr 05, 2006 9:39 am
Contact:

crash in WinMain(HINSTANCE__

Post 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.
briceandre
Ultimate wxWidgets Guru
Ultimate wxWidgets Guru
Posts: 672
Joined: Tue Aug 31, 2010 6:22 am
Location: Belgium

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

Regards,
Brice
Post Reply