Hi!
I try to develop a wxWidgets application which uses OpenGL with Code::Blocks. The problem is, that I always receive a SIGSEGV error when I try to create a wxGLCanvas object. I already tried the examples from the wxWiki, which didn't work too (so the problem here is not the code!). The strange about this is, that this problem only occurs when I use Code::Blocks. With wxDevCpp or VC++ everything works fine.
Here my setup:
- Code::Blocks (latest nightly build)
- wxPack 2.8
- MinGW (latest version)
The only logical reason(for me) why the examples doesn't run with Code::Blocks is, that I messed up some settings of Code::Blocks or something like that.
Therefore I'm questioning myself what the term "us wxWidget DLL" in the project wizard exactly means? Unchecking this (and manually linking all libraries) leads me into an linker error, check this (and manually linking all libraries) leads me into this SIGSEGV error.
Any ideas?
Here the debugger stuff:
Program received signal SIGSEGV, Segmentation fault.
In wxHashTableBase::DoGet (this=0x0, key=1640022, hash=1640022) at ../../src/common/hash.cpp:877 ()
In ntdll!LdrDisableThreadCalloutsForDll () (F:\WINDOWS\system32\ntdll.dll)
In ntdll!LdrFindCreateProcessManifest () (F:\WINDOWS\system32\ntdll.dll)
In ntdll!RtlCheckRegistryKey () (F:\WINDOWS\system32\ntdll.dll)
In ntdll!LdrFindCreateProcessManifest () (F:\WINDOWS\system32\ntdll.dll)
In ntdll!RtlCheckRegistryKey () (F:\WINDOWS\system32\ntdll.dll)
In ntdll!LdrFindCreateProcessManifest () (F:\WINDOWS\system32\ntdll.dll)
In ntdll!RtlUnhandledExceptionFilter () (F:\WINDOWS\system32\ntdll.dll)
In ntdll!LdrFindCreateProcessManifest () (F:\WINDOWS\system32\ntdll.dll)
In ntdll!RtlInitAnsiString () (F:\WINDOWS\system32\ntdll.dll)
In ntdll!RtlAppendStringToString () (F:\WINDOWS\system32\ntdll.dll)
In strchr () (F:\WINDOWS\system32\ntdll.dll)
In ntdll!RtlAppendStringToString () (F:\WINDOWS\system32\ntdll.dll)
Program received signal SIGSEGV, Segmentation fault.
In wxHashTableBase::DoGet (this=0x0, key=1640022, hash=1640022) at ../../src/common/hash.cpp:877 ()
Program exited with code 030000000005.
Debugger finished with status 0
And here the example I compiled:
http://wiki.wxwidgets.org/WxGLCanvas (error in line " new wxGLCanvasSubClass(frame);")