1
Window / Re: sfml window memory access error on exit
« on: June 17, 2016, 12:37:03 am »
I am using sfml 2.3.2 32 bit windows build downloaded from the sfml website.
I also compiled sfml locally and the error still occurs. It's somehow linked to sfml's opengl context.
Edit:
From the stacktrace, the way the code is structured is such that the app stil tries to draw even after the exit event. I've moved the event handlers to a custom function, cleaned up the opengl resourses and freed memory then used a C++ exception to jump back to main() and exit.
Hopefully my code wont make Bjarne want to slap me.
Anyone wants the actual code just PM me.
I also compiled sfml locally and the error still occurs. It's somehow linked to sfml's opengl context.
Edit:
From the stacktrace, the way the code is structured is such that the app stil tries to draw even after the exit event. I've moved the event handlers to a custom function, cleaned up the opengl resourses and freed memory then used a C++ exception to jump back to main() and exit.
Hopefully my code wont make Bjarne want to slap me.
Anyone wants the actual code just PM me.