Using loadLibrary inside a Windows VST?

My VST has a wrapper, basically an empty DLL file that dynamically loads a VST and returns it's entry point to the daw.

I made sure that there's a matching freeLibrary for every loadLibrary called, and still, the library is not freed (GetModuleHandle returns the handle).


Is it possible that the DAW won't let me free it?

I'm using the wrapper as a convinient way of updating my application (just replace the inner DLL), but I'm having troubles with replacing that DLL without having to shut down the DAW. Anyone has some other best practices or suggestions?