I wrote a program that loads a number of DLL's at startup. Each DLL exports a single function which returns a class type. The ancestor class is defined in a common unit, and each DLL derives its own class from it.
So far, so good (at least theoretically). But in fact, the program hangs when unloading the DLLs using FreeLibrary - Even if it's just:
It works with several Windows DLL's that I picked out randomly, but with none of mine (Actually, it did work with a few of them until I rebuilt them all). I can't afford to keep them all in memory, as I have around 30 of them (and counting). So my question is: What can possibly be wrong with those DLL's? It doesn't seem to make any sense.
Thanks a lot,