al_uninstall_sytem()

This is an old article from 2012. I was a kid. I learned a lot since then, so please do think twice when taking advice from me as a kid.

I spent 2 hours debugging last night and another 2 hours today to find the reason for random crashes at application exit.

When using Allegro 5 in a shared library, it is very important to use al_uninstall_system() manually (I guess allegro can’t call this in atexit() in those cases for some reason).

For those out there who also have this problem

This post was imported from tumblr.