Reply

Determine when to bind the application object

[ Edited ]

 

Dear group,

I'm trying to bind my application object to SE, which works well if SE is already running.

But if I want to start SE programatically and bind my application object to it, the application crashes because SE hasn't finished loading before i try to bind the application object.

Is there a way to determine if SE has finished loading before binding the application object to it?

Thanks,

Sibster

 

Posted by: Seb Sosna
Post date: 2/7/2008 7:36:20 AM

2 REPLIES

RE: Determine when to bind the application object

[ Edited ]

Hi Sibster,

 

just off the top of my head:

 

using System.Diagnostics;......Process proc = Process.Start(@"...\Program\Edge.exe"); /* Change path accordingly */proc.WaitForInputIdle();/* Attach to Edge here */......

 

Haven't tested it, but it should work,

Calum

 

Posted by: Calum McLellan
Post date: 2/7/2008 8:18:01 AM

RE: Determine when to bind the application object

[ Edited ]

 

Hello Calum,

 

thanks for your reply. unfortunately WaitForInputIdle() does not work (SE19).

Maybe is should watch after process.start the memory and if memory doesn't grow

after 5 sec, i can assign the application onject. I will give it a try...

 

regards,

Sibi

 

 

Posted by: Seb Sosna
Post date: 2/7/2008 10:37:21 AM