hi,
i have problem with wxGLCanvas. i googled and also searched this forum and did not find any useful information.
i am developing a small app with opengl windows, but i ran into a problem, that when i make release build the app crashes on wxGLCanvas constructor.
debug build runs without any problems.
i am developing under windows xp with code::blocks 8.02, with bundled mingw (3.4.5), wxWidgets 2.8.7.
sample ogl app from CB's template runs ok. penguin sample from wxWidgets has the same problem. debug build ok, release build crashes. i tried it on five different computers and it runs only on one of them.
could it be a problem with wxwidgets, compiler or something else? ...i also installed newest driver for my geforce 6 and it still crashes.
thank yo for your help.
wxGLCancas segmentation fault with release build
i just compiled todays snapshot of wxwdigets and linked my app against it and it crashed only on one out of three computers (crashed on an old notebook, i assume there are crappy ogl drivers, if any at all...).
i will test it on my school computer tomorrow, which is the only pc on wich the old version did not crash.
was there a bug in stable 2.8.7 version of wxwidgets?
i will test it on my school computer tomorrow, which is the only pc on wich the old version did not crash.
was there a bug in stable 2.8.7 version of wxwidgets?
I haven't found problems like those up to now, and I've developed programs using wxGLCanvas in different machines, with different custom wx-libs versions.
Only as a confirmation, when you built your wxMSW libraries, did you edit before that your <wxMSW folder>/include/wx/msw/setup.h file? (setting up the wxUSE_GLCANVAS define to 1)
Regards.
Only as a confirmation, when you built your wxMSW libraries, did you edit before that your <wxMSW folder>/include/wx/msw/setup.h file? (setting up the wxUSE_GLCANVAS define to 1)
Regards.
Misquotations are the only quotations that are never misquoted
i created empty wxWidgets project in c::b and then added the penguin source code. compilation and linking was without any errors (both debug and release). but the release build crashed on creating new wxGLCanvas, without any message.
after running it under debugger i found out, that it crashed raising segmentation fault on command ...new wxGLCanvas(...);
debug build runs without any problems.
after running it under debugger i found out, that it crashed raising segmentation fault on command ...new wxGLCanvas(...);
debug build runs without any problems.
Could you attach your C::B project file (only the .cbp file)? I think that maybe you are linking against wrong libraries in your release target. Or maybe you've not built properly your wxMSW release libraries.
I tried to create a C::B project from scratch, adding the penguin sample source code, and it compiles and runs smoothly for debug and release targets linking against wxWidgets 2.8.7 (for MSW and GTK platforms).
Regards.
I tried to create a C::B project from scratch, adding the penguin sample source code, and it compiles and runs smoothly for debug and release targets linking against wxWidgets 2.8.7 (for MSW and GTK platforms).
Regards.
Misquotations are the only quotations that are never misquoted
i think that c::b project is good, because i compiled it on my home pc and also on school pc (the same project file was used). where the "home" exe crashes everywhere except school pc. and the "school" exe behaved the same.
maybe i had a bad compilation of wxWidgets at home, bu i compiled it exactly the same as in school, with the same gcc compiler version and with the same commandline.
i solved this problem with the svn version of wxWidgets, wich is fine. now i am fighting with different problems with wxAUI and wxAUI + wxGLCanvas... thank you for your help.
ps: i don't have that old .cbp file, because i changed the linking to wxWisget's 2.9.x version...
maybe i had a bad compilation of wxWidgets at home, bu i compiled it exactly the same as in school, with the same gcc compiler version and with the same commandline.
i solved this problem with the svn version of wxWidgets, wich is fine. now i am fighting with different problems with wxAUI and wxAUI + wxGLCanvas... thank you for your help.
ps: i don't have that old .cbp file, because i changed the linking to wxWisget's 2.9.x version...
i found the penguin .cpb file
ps: why is the .cbp file extension not allowed to attach?
ps: why is the .cbp file extension not allowed to attach?
- Attachments
-
- penguin.zip
- penguin sample c::b project file
- (2.69 KiB) Downloaded 59 times