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-07-18 16:04
Reporter pyscripter View Status public  
Assigned To
Priority normal Resolution open  
Status feedback   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
    begin
    end
    else
    if WaitForTerminate then
    begin
    end
    else
    begin
      { http://support.microsoft.com/default.aspx?scid=kb;en-us;124121 [^] }
      WaitForInputIdle(FProcessInfo.hProcess, INFINITE);
      GoToReadyState; //GotoRunningState;
    end;


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

-  Notes
(0021546)
obones (administrator)
2018-07-18 16:04

Could you check if the issue is still present in the latest GIT content? If yes, please provide the zipped sources of an application showing this.

- 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
2018-07-18 16:04 obones Note Added: 0021546
2018-07-18 16:04 obones Status new => feedback


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