wxIrrlicht control crashes (SOLVED)

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
yablebab
Posts: 5
Joined: Wed Sep 20, 2006 9:20 pm
Location: Berkeley, CA

wxIrrlicht control crashes (SOLVED)

Post by yablebab »

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
Last edited by yablebab on Wed Oct 04, 2006 6:02 pm, edited 1 time in total.
mandrav
Posts: 117
Joined: Sat Aug 27, 2005 8:29 pm
Contact:

Re: wxIrrlicht control crashes

Post by mandrav »

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
I think this is mentioned in the README.
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 :)
Post Reply