Well I don't understand it. The application is runnable and everything exits fine. Anyway from NOWHERE the destructor for
WglContext is run and it tries to run line
103 which is:
DestroyWindow(myWindow);But I destroyed it long time ago, I don't have any window allocated on the stack. Also the call-stack looks really funny. The function called before(and only) the destructor is called
90909090().
I'm probably doing something very funky which makes this happen. It didn't appear before but now it does. All I did was extend my messaging system to make the main thread and renderer thread work more asynchronous. I'll be committing the code to here:
https://github.com/Groogy/Ascension/tree/developmentThough it's a lot so don't think anyone would want to read trough it. If someone could give me a pointer to as of why this could have happened then that would be great to help me give concerning code.
Misc: Currently working in Visual Studio 2008 with SFML2 in debug mode. SFML is linked statically with the debug libraries and I have defined SFML_STATIC. Since I use static libraries I get this warning:
"Warning 1 warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library Ascension"Just in case if it matters.
PS: Also according to the bugger, the WglContext this pointer is not even correct.