I found the error. ^^
It seems to be not a memory macro problem.
Its a wxwidgets problem. See documentation
http://www.wxwindows.org/manuals/2.4.2/ ... xstaticbox
Code: Select all
Please note that a static box should not be used as the parent for the controls it contains, instead they should be siblings of each other. Although using a static box as a parent might work in some versions of wxWindows, it results in a crash under, for example, wxGTK.
So this
Code: Select all
wxStaticBox *sbSkyBoxSettings = new wxStaticBox(this,-1,"Skybox settings",wxPoint(5,60),wxSize(240,130));
new wxStaticText(sbSkyBoxSettings,-1,"Skybox:",wxPoint(10,20));
is not right.
I replaced it with
Code: Select all
new wxStaticText(this,-1,"Skybox:",wxPoint(10,20));
and now it compiles and runs so far.
But the layout is not right.
Another problem i is that the ogre renderwindow is not embedded, it's an extra window.