Update:Ok i think this happens every single time i try to build the libraries with MFC in static library or UNICODE char set. At least thats what im only tweaking. VS11/VS12 same thing. I'm not sure why. And actually in release version i get a different error as soon as i hit a key or something:
A buffer overrun has occurred in G5.exe which has corrupted the program's internal state. Press Break to debug the program or Continue to terminate the program.
Ok i need help figuring this out because i've tried every thing the last 2 days.
Basically this simple pollEvent loop can trigger a breakpoint.
while (this->myWindow->pollEvent(anEvent))
{
}
And this is the best trace i can get after my HandleInput() method which contains those 3 lines above.
G5.exe!__crtUnhandledException(_EXCEPTION_POINTERS * exceptionInfo) Line 259 C
G5.exe!__raise_securityfailure(_EXCEPTION_POINTERS * ExceptionPointers) Line 79 C
G5.exe!__report_gsfailure() Line 241 C
I really want to get the static linkage down right and also use the pollEvent loop mostly because of its keyRelease functionality (If there is an alternative here i'd be glad to hear it out).
Funny thing is this only occurs in my release build with static linkage. Debug build (with debug libs) works fine and same thing stands true for the shared release build (if i remember correctly)
I'm really desperate and tried everything. Any clues?
Also some answers to some possible questions:
-I'm using visual studio 2013.
-This happens with visual studio 2012 also.
-I did compile the libraries from the latest build available in github with the proper settings.
(also take note, the one you provide for download in the website seems broken. It fails to load all modules properly in the visual studio after cmake. Tried two different stations. Same results)
I'm available for any further info you might need.