Page 1 of 1

TMyDump in a thread

Posted: Thu 23 Nov 2006 13:37
by bravecobra
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?

Posted: Thu 23 Nov 2006 16:20
by Antaeus
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