Hi, I have some problems with embedded session with a java application. When I close it outside RDM (for example with the close cross of app or kill with task manager) RDM keep it open. After it impossible to start it again. Here is the code on exit event of the process
protected void OnExited(object sender, EventArgs e){ Form[] Childs = this.ParentForm.MdiChildren; foreach (Form Child in Childs) Child.Close(); this.ParentForm.Close(); Process.CloseMainWindow(); Thread.Sleep(1000); this.MainWindowHandle = IntPtr.Zero; this.Process = null; }
Event is correctly called when process exits Any ideas ? Thanks <em>edited by chris on 3/29/2012</em>
Clock7 yrs
|
|
Hi, Have you tried to call the Close from the interface IEmbeddedSessionUserControl returned by your Add-on?
David Hervieux  
Clock7 yrs
|
|
Hi Thank for your anwser... I'd implement the Close Method in the AddOn but it was never called. Perhaps I miss something ! <em>edited by chris on 4/4/2012</em>
Clock7 yrs
|
|
Hi, You can call it manually OnExited. This will stop the remove your session and close it
David Hervieux  
Clock7 yrs
|
|