Doscommand is still running
ThomasW69 opened this issue · 4 comments
ThomasW69 commented
TDOSCommand can only be started once. If I want wo start it a second one then I get the Message "Doscommand is still running". This also happens in the Demo project!
I looks like the threads are not terminated correctly. The function TDOSCommand.Stop causes the program hang.
fsiek commented
Same here, hangs on ReadPipeThread.Waitfor but only for release versions.
Looks like ReadFile is blocking the TReadPipe thread on terminate.
fsiek commented
HOTFIX: Move CloseHandle(myoutputwrite); some lines up, right before ReadPipeThread.Terminate; will fix the problem.
souarit commented
HOTFIX: Move CloseHandle(myoutputwrite); some lines up, right before ReadPipeThread.Terminate; will fix the problem.
don't worked for me.
romankassebaum commented
Okay, I checked in. Please try.