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 2019-04-30 15:57
Reporter pyscripter View Status public  
Assigned To obones
Priority normal Resolution fixed  
Status resolved   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

-  Notes
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.
mh (reporter)
2019-04-27 14:06

Created this pull request for the 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
2018-07-18 16:04 obones Note Added: 0021546
2018-07-18 16:04 obones Status new => feedback
2019-04-27 14:06 mh Note Added: 0021761
2019-04-30 15:57 obones Status feedback => resolved
2019-04-30 15:57 obones Fixed in Version => Daily / GIT
2019-04-30 15:57 obones Resolution open => fixed
2019-04-30 15:57 obones Assigned To => obones

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