Hello
I'm using the MyDump->BackupToFile command in my app.
For some reasons, I would like to be able to stop the backup when it has been started.
I could see that the BackupToFile command was not a blocking call. So I have added a button allowing to press cancel to stop it.
But then, I don't know how to do : I didn't find any method or property allowing to stop it !
I've tried to free the connection with 'MyDump->Connection = NULL' but it doesn't work.
Any idea ???
How to stop Backup in progress with MyDAC library
The BackupToFile method of TMyDump is a synchronous method. To be able to interrupt saving data with the BackupToFile method, you should implement a multithreaded application and execute backing up to file in another thread through a separate connection. To stop saving data, you should execute the KILL command for the connection used in the additional thread.