FreeLibrary upon Disconnect
Posted: Wed 25 Aug 2010 15:41
Hello
I have a service, who will automatically connect to an embedded server to make certain checking, and disconnect, periodically.
Now I found that even I have disconnected from the server, I can not start a second instance for using that embedded server because dll is still loaded, unless I completely shutdown the previous one.
So is it possible to call FreeLibrary upon Disconnect instead of component destroy?
I have a service, who will automatically connect to an embedded server to make certain checking, and disconnect, periodically.
Now I found that even I have disconnected from the server, I can not start a second instance for using that embedded server because dll is still loaded, unless I completely shutdown the previous one.
So is it possible to call FreeLibrary upon Disconnect instead of component destroy?