timeout on ReadLine from StandardOutput stream of process vb.net 2012
I have a process running. It should only take 1.5 minutes to run.. but
sometimes something happens so at ReadLine it will get stuck. I am
processing a video file.. I need a way to kill this process if it goes
beyond the 3 min mark. I already have the condition handled if the process
is killed.. I thought I could run a timer and after 3 minutes kill the
process but ReadLine locks the thread.. this function is running in a
thread on my main program..
No comments:
Post a Comment