-
I am using Delphi 11. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
In Free pascal, I asked GTP to do the same function code which work, |
Beta Was this translation helpful? Give feedback.
-
In delphi ,I take a search with "CreateProcess crash with STARTF_USESTDHANDLES",I see "ANSICHAR thing" so that I change to CreateProcessA. |
Beta Was this translation helpful? Give feedback.
In delphi ,I take a search with "CreateProcess crash with STARTF_USESTDHANDLES",I see "ANSICHAR thing" so that I change to CreateProcessA.
It finally can run
https://gist.github.com/sum2012/a64478bde210ac40c110f5e4cbdc9f98
But it is same result with TJvCreateProcess,You need input 2 times of command (dir) to see the output.
edir:Get lucky fixed.
Change to if ReadFile(FReadPipe, Buffer, SizeOf(Buffer)-1, BytesRead, nil) then
https://gist.github.com/sum2012/0891864a43a5ab90b1386e48ff459537
I am not interested to fix TJvCreateProcess