I'm using an embedded database and I need to access to the database shortly to read a value and close the database, so the database can be accessed by a different instance of my application (due to the restrictions of only one instances in embedded MySQL)
I'm using MyDac with Delphi and performed multiples tries and errors to close the database. Something like:
Code: Select all
var
FDatabaseEmbedded: TMyEmbConnection;
begin
// Create and open the database
FDatabaseEmbedded := TMyEmbConnectin.Create(nil);
...
...
// read from the database
...
...
// Close the database
FDatabaseEmbedded.Connected := False;
FDatabaseEmbedded.Close;
FDatabaseEmbedded.Destroy;
....
How can I fully close the database in runtime so it can be accessed by external instances?
Thanks!