View Issue Details

IDProjectCategoryView StatusLast Update
0000123Lazaruspublic2003-09-25 16:01
ReporterBug ImportAssigned ToMattias Gaertner 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionno change required 
Product VersionProduct Build 
Target VersionFixed in Version 
Summary0000123: TProcess: Could not create pipe
DescriptionIf poUsePipes is set as an option in TProcess, a "Could not create pipe" exception is thrown after several hundred calls. Removing poUsePipes or commenting out the CreateStreams and 3 fileclose statements in TProcess.execute makes the problem go away... along with access to the streams. I've tried but haven't had any success fixing this.

The following code will reproduce the problem with a TProcess, button and edit on the form:

procedure TForm1.Button1CLICK(Sender: TObject);
var i:Integer;
begin
  With Process1 do
    Begin
      commandline:='ls';
      options:=[pousepipes,ponoconsole];
      For I:=1 to 50000 do
        Begin
          edit1.text:=inttostr(i);
          active:=true;
          WaitonExit;
        end
    End
end;



Additional InformationImported information
--------------------
Name: Tom Lisjac
Mail:
TagsNo tags attached.
Fixed in Revision
LazTarget
WidgetsetGTK, Win32/Win64
Attached Files

Activities

Bug Import

2003-09-25 16:01

reporter   ~0000105

Not a lazarus bug. This should be added to the FPC bug list.

Issue History

Date Modified Username Field Change
2003-07-01 00:00 Bug Import New Issue
2003-07-01 00:00 Bug Import Widgetset => GTK, Win32
2003-09-25 16:01 Bug Import Status new => assigned
2003-09-25 16:01 Bug Import Assigned To => Mattias Gaertner
2003-09-25 16:01 Bug Import Note Added: 0000105
2003-09-25 16:01 Bug Import Status new => closed
2003-09-25 16:01 Bug Import Resolution open => no change required