View Issue Details

IDProjectCategoryView StatusLast Update
0006616JEDI VCL00 JVCL Componentspublic2018-06-09 15:24
ReporterpyscripterAssigned ToAHUser 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product VersionDaily / GIT 
Target VersionFixed in VersionDaily / GIT 
Summary0006616: JvCreateProcess - CloseWrite should be made public
DescriptionWhen you redirect input to the created process, the standard way to indicate that input is finished is to close the hstdin handle. See for example (https://msdn.microsoft.com/en-us/library/windows/desktop/ms682499(v=vs.85).aspx, the WriteToPipe function).

In the past I got away by writing a #26 character (EOF ^Z) to the input. That for example worked with Python 2.x, but it does not work with Python 3.x, which keeps on waiting for input. CloseWrite, needs to made public so that the caller of JvCreateProcess can indicate that there is no more input to provide.
Additional InformationThe attached modified file does this (as well as dealing with separate issue 6610).
TagsNo tags attached.

Activities

2018-02-01 05:38

 

JvCreateProcess.pas (51,184 bytes)

AHUser

2018-06-09 15:24

developer   ~0021470

CloseWrite is now public in the master branch

Issue History

Date Modified Username Field Change
2018-02-01 05:38 pyscripter New Issue
2018-02-01 05:38 pyscripter File Added: JvCreateProcess.pas
2018-06-09 15:24 AHUser Note Added: 0021470
2018-06-09 15:24 AHUser Status new => resolved
2018-06-09 15:24 AHUser Fixed in Version => Daily / GIT
2018-06-09 15:24 AHUser Resolution open => fixed
2018-06-09 15:24 AHUser Assigned To => AHUser