Hello all,
I'm trying to port one of my OpenGL projects using Code::Blocks.
I have installed the latest version along with mingw on my Windows XP machine.
After a couple of hours fiddling with the code, I managed to compile the project using the GNU GCC compiler. It runs perfectly (both in Debug and Release).
However, if I want to debug it, it crashes with a SIGSEGV and the call stack looks like this:
#0 7C91B1FA ntdll!RtlpWaitForCriticalSection() (C:\WINDOWS\system32\ntdll.dll:??)
#1 00000001 ??() (??:??)
#2 0022E8E4 ??() (??:??)
#3 00000000 ??() (??:??)
I've created an OpenGL project from scratch using the wizard and it's the same story all over again: it compiles, runs great, only when I try to debug it, it crashes with SIGSEGV.
Also, a dialog-based project debugs just fine, so I'm guessing it has something to do with the opengl libs?
What am I doing wrong? It's the original setup (mingw included), GNU GCC compiler with default settings...