J
Jothishankar
Hi,
I am new to c#. I am trying to build an application that does backup
of files to an external hard disk.
My application behaves strangely. When i run the application under
debug mode (F5), it works properly. But when i run it in normal mode
(Ctrl+F5) the program stalls in the middle.
I use a couple of worker threads which run successively. The first one
is for estimating the space requirements - calculating the folder size
to backup and also finding the available disk space on the external
hard disk.
After the first thread completes, the second worker thread does the
actual backup. The main thread handles the UI. The two worker threads
update the UI components in the main thread in a thread safe manner.
All these work properly in the debug mode. But in the normal mode, the
program stalls during the backup. It stops in the middle and the
backup does not complete. Also, the program does not respond.
FYI, I am building the application under "debug" and not "release"
configuration.
Any help appreciated.
Thank you.
I am new to c#. I am trying to build an application that does backup
of files to an external hard disk.
My application behaves strangely. When i run the application under
debug mode (F5), it works properly. But when i run it in normal mode
(Ctrl+F5) the program stalls in the middle.
I use a couple of worker threads which run successively. The first one
is for estimating the space requirements - calculating the folder size
to backup and also finding the available disk space on the external
hard disk.
After the first thread completes, the second worker thread does the
actual backup. The main thread handles the UI. The two worker threads
update the UI components in the main thread in a thread safe manner.
All these work properly in the debug mode. But in the normal mode, the
program stalls during the backup. It stops in the middle and the
backup does not complete. Also, the program does not respond.
FYI, I am building the application under "debug" and not "release"
configuration.
Any help appreciated.
Thank you.