Project JEDI - Issue Tracker
Mantis Bugtracker

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0006610 [JEDI VCL] 00 JVCL Components minor always 2018-01-14 23:39 2018-01-14 23:39
Reporter pyscripter View Status public  
Assigned To
Priority normal Resolution open  
Status new   Product Version Daily / GIT
Summary 0006610: JVCreateProcess appears to be running forever.
Description If not (coRedirect in ConsoleOptions) and WaitForTerminate = false no waiting thread is created and the state will stay forever as psRunning since HandleThreadTerminated will never be called and there is no way to reset the state to psReady. From that point the component will become unusable i.e. no other process can be created.

It is better in this case to set the state as Ready instead of Running.

So in TJvCreateProcess.Run

    if coRedirect in ConsoleOptions then
    if WaitForTerminate then
      {;en-us;124121 [^] }
      WaitForInputIdle(FProcessInfo.hProcess, INFINITE);
      GoToReadyState; //GotoRunningState;

Additional Information The attached file contains the modified code plus introduces a new flag for CREATE_NO_WINDOW
Tags No tags attached.
Attached Files ? file icon JvCreateProcess.pas [^] (51,105 bytes) 2018-01-14 23:39

- Relationships

There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2018-01-14 23:39 pyscripter New Issue
2018-01-14 23:39 pyscripter File Added: JvCreateProcess.pas

Mantis 1.1.6[^]
Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker