After so much debugging I'm almost sure this is not a problem with my code. I just freshly installed wxWidgets 3.1.2 on VS 2015. In short, any sort of event (button click, etc.) will crash the application when triggered.
The crash redirects to appbase.cpp:
And the error is// If the functor holds a method then, for backward compatibility, call
wxEventFunction eventFunction = functor.GetEvtMethod();
if ( eventFunction )
>>> HandleEvent(handler, eventFunction, event);
I've checked my code and my installation countless times, and can't figure out whats wrong.Exception thrown at 0x0CFFFFFF in Example.exe: 0xC0000005: Access violation executing location 0x0CFFFFFF.
If there is a handler for this exception, the program may be safely continued.
Can anyone give me a clue how to get around this?
Thanks so much!