TMyDump in a thread

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
bravecobra
Posts: 11
Joined: Tue 21 Mar 2006 11:20

TMyDump in a thread

Post by bravecobra » Thu 23 Nov 2006 13:37

Hi,

I'm trying to use TMyDump's backup and restore procedures in a thread and have its progress outputted in a Modalform. However the TMyDump component doesn't have the properties from which I derive its progress. Those variables are available only in its eventprocedures OnBackupProgress and OnRestoreProgress which I don't have available in my thread.

Any ideas on how I can achieve this?

Antaeus
Posts: 2098
Joined: Tue 14 Feb 2006 10:14

Post by Antaeus » Thu 23 Nov 2006 16:20

We can suggest you the following solution:
- declare a temporary variable to fill it with current progress status from the event of TMyDump
- create a timer in the main thread to read the value of the temporary variable and changange the progress bar status correspondingly to its value

Post Reply