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?
FreeLibrary upon Disconnect
MyDAC does not unload Embedded server every time after closing a connection because this is a very slow operation. If you really need to release database files during your application is working, you should add the MySqlApi unit to the uses clause and execute this code:
Code: Select all
MyAPIEmbedded.FreeMySQLLib;