Close Process

G

Guest

Hi All
My application has 3 processes. Now if there occurs an exception say 1
divided by 0 which is not handeled at process level and System Dialog
indicating the exception comes up. If user clicks on abort button, how can I
close other two processes ? i.e. how do I capture Abort event ? I tried using
WinProc messages but abort message doesnt come there. The las message that
appeared was left mouse button up (i.e. I believe when Abort button was
Clicked with mouse).

Pls. help. Thanks in advance

Regards
Tarun Gujral
 
G

Guest

You could do Application.Exit()
To capture terminating events look at Form's events, there should be some
exposed (such as Close, Closing, etc)
 
G

Guest

Yup that can be done but it has to be through other two processes subscribing
to event of application exit on 1st process getting aborted. I want to handle
the clean up from aborted process itself i.e. if my process 1 is getting
aborted , process 1 should be responsible for closing other processes. So how
do i capture event in my running process before it is aborted

Thanks
Tarun Gujral
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top