S
Steve B.
Hi,
I have an application with some forms.
One of this forms use a background process to perform some operations. The
process is in a second thread, in order to display the user a progress bar.
From this process in a second thread, I sometimes require closing the
application. How can I close the app ?
FYI, the process is a quite complex process (a list of jobs, each job are in
a separate class library and a job manager handle it) so it's quit difficult
to "return" a boolean to tell the app to close.
I've tried an application.exit, but the application continues to run...
I could use Process.GetCurrentProcess.Kill(), but I'm afraid there's side
effect.
I'd appreciate any advise to reach my goal.
Thanks,
Steve
I have an application with some forms.
One of this forms use a background process to perform some operations. The
process is in a second thread, in order to display the user a progress bar.
From this process in a second thread, I sometimes require closing the
application. How can I close the app ?
FYI, the process is a quite complex process (a list of jobs, each job are in
a separate class library and a job manager handle it) so it's quit difficult
to "return" a boolean to tell the app to close.
I've tried an application.exit, but the application continues to run...
I could use Process.GetCurrentProcess.Kill(), but I'm afraid there's side
effect.
I'd appreciate any advise to reach my goal.
Thanks,
Steve