File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -162,7 +162,7 @@ tcmp = class(tComparer<tsortitem>)
162162 cmp := tcmp.Create;
163163 TArrayHelper<tsortitem>.sort(keys, cmp);
164164 cmp.Free;
165- stream := THandleStream.Create(0 );
165+ stream := THandleStream.Create(1 );
166166 stream.WriteByte(Ord(' {' ));
167167 eka := True;
168168 for k in keys do
@@ -200,6 +200,7 @@ tcmp = class(tComparer<tsortitem>)
200200 it: pdataitem;
201201 begin
202202 pool := TFPSimpleThreadPool.Create;
203+ pool.MinThreads:=1 ;
203204 if threadc > 0 then pool.MaxThreads := threadc;
204205 bc := 256 ;
205206 i := 0 ;
@@ -263,7 +264,7 @@ tcmp = class(tComparer<tsortitem>)
263264 infile := ParamStr(1 );
264265 if not FileExists(infile) then
265266 begin
266- writeln(' Invalid filename' , ParamStr(1 ));
267+ writeln(' Invalid filename ' , ParamStr(1 ));
267268 break;
268269 end ;
269270 end
You can’t perform that action at this time.
0 commit comments