Using callbacks in a DLL

BlitzMax Forums/BlitzMax Programming/Using callbacks in a DLL

Ha!

I was using a global variable for all my callbacks, and of course, some callbacks call functions in the main program that set callbacks, so my callback function was getting changed!

I'm still a little hazy on how byte ptr's should be freed, but I am getting somewhere.