I tried to use the wxIrrlicht control (http://irrlicht.sourceforge.net/phpBB2/ ... =wxwidgets) to make a simple test program, and it builds ok, but it crashes when i run it. I went through function by function and it seems there are a few things making it crash.
First, in the OnPaint() function, declaring the wxPaintDC object causes the program to crash on termination. Also, in the OnMouse() function, calling m_pDevice->postEventFromUser(sevt) causes the program to crash as soon as I run it. I get the "test2.7.exe has encountered a problem and needs to close. We are sorry for the inconvenience." offering to send an error report and all that. It actually pops up 3 times.
Is anyone else having a similar problem? Any insight or tips on how to fix this?
Brian
edit: problem solved. it turns out this is what happens if you declare a wxIrrlicht control and never use wxIrrlicht::Init() go figure
wxIrrlicht control crashes (SOLVED)
wxIrrlicht control crashes (SOLVED)
Last edited by yablebab on Wed Oct 04, 2006 6:02 pm, edited 1 time in total.
Re: wxIrrlicht control crashes
I think this is mentioned in the README.yablebab wrote: edit: problem solved. it turns out this is what happens if you declare a wxIrrlicht control and never use wxIrrlicht::Init() go figure
It would also be nice of you to edit this thread's title and prepend "[solved]" to it so others searching about this issue can spot it right away