Program Delay

I am using the Process class to start up an application. I am running a loop so that the program opens and shuts each time it runs, but the program doesn't automatically shut down completely leaving about a coupple seconds of overhead. This leaves the process open when the second one wishes to open and causes a problem.

Is there a way to add a delay between each process start?

Comments

  • : I am using the Process class to start up an application. I am running a loop so that the program opens and shuts each time it runs, but the program doesn't automatically shut down completely leaving about a coupple seconds of overhead. This leaves the process open when the second one wishes to open and causes a problem.
    :
    : Is there a way to add a delay between each process start?
    :
    In VB.Net: use System.Threading.Thread.Sleep(intMilliSeconds as Integer)
    Greetz!

    Bart
    Make fun of your life ;-)

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion