Close Process

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
You could do Application.Exit()
To capture terminating events look at Form's events, there should be some
exposed (such as Close, Closing, etc)
 
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
 
Back
Top