|
Answer» ..and another hurdle to overcome!
Hi Everyone,
I am using the following code in my VB build:
DIM myProcess As Process Dim myProcessinfo As New ProcessStartInfo("C:\processname") myProcessinfo.WindowStyle = ProcessWindowStyle.Hidden myProcess = Process.Start(myProcessinfo)
myProcess.WaitForExit(360000) If Not myProcess.HasExited Then myProcess.Kill() End If
Everything works ok, the process runs and if it hasn't ended within 6 minutes it's automatically stopped.
Now the problem!
As i'm using the WaitForExit command the whole build does just that - it stops, dead. I have a progress bar and a flash advert that both stop dead in their tracks until the process is finished - not good!
Is there any WAY I can get VB to wait until the process has finished before the next step commences, RETAIN some control that prevents the process from hanging and also have animations still play?
TIA guys.I've always found the DevX site to be a good source of information. The article is multiple pages so be sure to read the whole thing.
Good luck. Duly noted - and set as homepage!!
Many thanks.
|