[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[platform-debug-dev] Re: [pde-dev] How can I implement a listener for the termination of a RuntimeProcess

This should be on the debug-dev list, not PDE.

IDebugTarget.terminated() is *not* a notification of termination - it is a 
method that terminates the target when called. You can add an 
IDebugEventListener to listen to terminate events of debug elements 
(processes, targets, threads).

Darin Wright




From:
Gabriel Petrovay <gabipetrovay@xxxxxxxxx>
To:
pde-dev@xxxxxxxxxxx
Date:
07/29/2009 12:11 PM
Subject:
[pde-dev] How can I implement a listener for the termination of a 
RuntimeProcess
Sent by:
pde-dev-bounces@xxxxxxxxxxx



Hi,

In the Debug View, one can see a Launch having as children an
IDebugTarget and an IProcess.

If I terminate the IDebugTarget, the Launch or any of the IThread's,
the terminate event propagated successfully and all the objects
INCLUDING the IProcess is terminated.

Here is the problem:

But if I terminate the IProcess (this is a RuntimeProcess instance),
the terminated event does not propagate the same way (I have custom
code that must be executed before the IDebugTarget terminates.). So,
even if the Debug View UI shows the labels as "<terminated>" for all
the objects in the hierarchy, the IDebugTarget.terminated() is not
called anymore?

Why is this? Or how can I add a listener to the termination of the 
IProcess?

Thanks!

Regards,
Gabriel

-- 
MSc Gabriel Petrovay
Mobile: +41(0)787978034
www.28msec.com
_______________________________________________
pde-dev mailing list
pde-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/pde-dev