Static objects and VST (dll) safety

Another of those things that gets in the head and convinces you there’s trouble…

With the ‘type handler’ stuff i did before, it makes use of a static object to hold all the handler instances. I imagine that it’s not safe to use in a DLL where multiple instances might be loaded - or am I scaring myself by thinking about it too much? No time to work on it at the moment, so I’m posting this to see if anyone can answer it before I try :slight_smile:

You can use static objects as long as you’re careful. Just make sure each instance is aware that it might not be the only one using the static stuff.