Click to See Complete Forum and Search --> : process


lindawqu
October 4th, 2005, 04:40 PM
problem:

start a process and wait for its return value to see if the process starts successfully. But for some reason, the value is not returned within 30 seconds.

what I want is

if it goes over 30 seconds, stop the process.

How to check time processing time?

please tell me how to do it.


thanks

jhammer
October 5th, 2005, 03:25 AM
But for some reason, the value is not returned within 30 seconds

How do you return the value? its a little difficult to understand your question. Please tell us what exactly are you doing or post some code.

lindawqu
October 5th, 2005, 07:29 AM
create a method like

private bool myProcess()
{
process.start(.....) //for some reasom, it processes over 30 secends
return true;

}

wildfrog
October 5th, 2005, 07:48 AM
It's not easy to find errors in pseudo code. Could you post a bit more of the code? How do you initialize your 'process' variable?

- petter