Um now I don't know if I'm wrong,
I run the application in debug mode then i close it. When I close it I press the "Next Line" button 8 times after this processes:
Debugger name and version: GNU gdb 6.3
In ntdll!DbgUiConnectToDbg () (ntdll.dll)
In ntdll!RtlpNtMakeTemporaryKey () (ntdll.dll)
In ntdll!RtlLengthSid () (ntdll.dll)
In ntdll!RtlpNtMakeTemporaryKey () (ntdll.dll)
In strchr () (ntdll.dll)
In ntdll!RtlpNtMakeTemporaryKey () (ntdll.dll)
In ntdll!RtlInsertElementGenericTableAvl () (ntdll.dll)
In ntdll!iswdigit () (ntdll.dll)
Program received signal SIGSEGV, Segmentation fault.
In ?? () from ()
i receive a message box with
"Program received signal SIGSEGV, Segmentation fault. Do you want to view the backtrace"
Then when tracing:
#0 00000000 ??() (??:??)
#1 00436A4B wxWindow::HandleActivate(this=0x4036500, state=1) (../src/msw/window.cpp:3666)
#2 00434F49 wxWindow::MSWWindowProc(this=0x4036500, message=6, wParam=1, lParam=0) (../src/msw/window.cpp:2597)
#3 0043472E wxWndProc(hWnd=0xe0506, message=6, wParam=1, lParam=0) (../src/msw/window.cpp:2493)
#4 77D48734 USER32!GetDC() (C:\WINDOWS\system32\user32.dll:??)
#5 000E0506 ??() (??:??)
#6 00000006 ??() (??:??)
#7 00000001 ??() (??:??)
#8 00000000 ??() (??:??)
#9 0043465A wxWindowCreationHook::~wxWindowCreationHook() (c:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/iostream:76)
#10 77D48816 USER32!GetDC() (C:\WINDOWS\system32\user32.dll:??)
#11 0043465A wxWindowCreationHook::~wxWindowCreationHook() (c:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/iostream:76)
#12 77D4B4C0 USER32!DefWindowProcW() (C:\WINDOWS\system32\user32.dll:??)
#13 00000000 ??() (??:??)
#14 0043465A wxWindowCreationHook::~wxWindowCreationHook() (c:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/iostream:76)
#15 77D4B50C USER32!DefWindowProcW() (C:\WINDOWS\system32\user32.dll:??)
#16 039899B0 ??() (??:??)
#17 00000006 ??() (??:??)
#18 00000001 ??() (??:??)
#19 00000000 ??() (??:??)
#20 0043465A wxWindowCreationHook::~wxWindowCreationHook() (c:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/iostream:76)
#21 7C90EAE3 ntdll!LdrDestroyOutOfProcessImage() (ntdll.dll:??)
#22 0023F5CC ??() (??:??)
#23 00000018 ??() (??:??)
#24 039899B0 ??() (??:??)
#25 00000006 ??() (??:??)
#26 00000001 ??() (??:??)
#27 00000000 ??() (??:??)
#28 0043465A wxWindowCreationHook::~wxWindowCreationHook() (c:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/iostream:76)
#29 0044E4CD wxTopLevelWindowMSW::~wxTopLevelWindowMSW(this=0x403e968) (../src/msw/toplevel.cpp:638)
Edit: I forgot to call wxAui::UnInit() on the destructor :oops: