my app worked fine with wx2.6.2. i've now upgraded to the latest build 2.6.3, it still compiles fine (i get these two warnings: "LINK : warning LNK4089: all references to 'ADVAPI32.dll' discarded by /OPT:REF" and "LINK : warning LNK4089: all references to 'OLEAUT32.dll' discarded by /OPT:REF" though), but if i run it and press any button on my toolbar, the app exits without an error - i i choose exit from the menu, it crashes.
any ideas?
wx2.6.3: app exits on button click Topic is solved
-
- I live to help wx-kind
- Posts: 187
- Joined: Sun Jan 30, 2005 2:50 pm
- Location: Heidelberg, Germany
wx2.6.3: app exits on button click
Windows 7 Pro
Visual Studio 2010
wxWidgets 2.9.3
Visual Studio 2010
wxWidgets 2.9.3
If you build in release mode and do not handle exceptions (try /EHsc from the fop of my head) and an exception occurs, the app exits.
A snippet of code would be helpful, it might be that you are accessing a null pointer, uninitialized widget or what else.
- Jorgen
A snippet of code would be helpful, it might be that you are accessing a null pointer, uninitialized widget or what else.
- Jorgen
Forensic Software Engineer
Netherlands Forensic Insitute
http://english.forensischinstituut.nl/
-------------------------------------
Jorg's WasteBucket
http://www.xs4all.nl/~jorgb/wb
Netherlands Forensic Insitute
http://english.forensischinstituut.nl/
-------------------------------------
Jorg's WasteBucket
http://www.xs4all.nl/~jorgb/wb
-
- I live to help wx-kind
- Posts: 187
- Joined: Sun Jan 30, 2005 2:50 pm
- Location: Heidelberg, Germany
it seems to be a problem with wxaui which i am using for my gui.
so calling getpane() seems to cause the crash.. :/ no problems in debug mode, though.
Code: Select all
void Mainframe::OnToolbar( wxCommandEvent &event )
{
switch( event.GetId() )
{
case ID_WORLD:
Manager.GetPane("World panel").Show();
break;
case ID_LIGHTING:
Manager.GetPane("Lighting panel").Show();
break;
case ID_TRIGGERS:
Manager.GetPane("Triggers panel").Show();
break;
case ID_PLAYERS:
Manager.GetPane("Players panel").Show();
break;
case ID_WEAPONS:
Manager.GetPane("Weapons panel").Show();
break;
case ID_PROJECTILES:
Manager.GetPane("Projectiles panel").Show();
break;
case ID_ITEMS:
Manager.GetPane("Items panel").Show();
break;
case ID_PROPERTIES:
Manager.GetPane("Properties panel").Show();
break;
}
Windows 7 Pro
Visual Studio 2010
wxWidgets 2.9.3
Visual Studio 2010
wxWidgets 2.9.3
Hehe happens to the best of us
- Jorgen
- Jorgen
Forensic Software Engineer
Netherlands Forensic Insitute
http://english.forensischinstituut.nl/
-------------------------------------
Jorg's WasteBucket
http://www.xs4all.nl/~jorgb/wb
Netherlands Forensic Insitute
http://english.forensischinstituut.nl/
-------------------------------------
Jorg's WasteBucket
http://www.xs4all.nl/~jorgb/wb