[Lazarus] TProcess
Antonio Fortuny
a.fortuny at sitasoftware.lu
Fri Feb 22 11:36:42 CET 2013
Le 22/02/2013 11:16, Antonio Fortuny a écrit :
>> In that case you should be able to use TProcess if you set the Options
>> accordingly (no poNewProcessGroup, but poNewConsole instead). You can
> With these parameters, launching of the new process still fails with
> same error code: 87
> with TProcess.Create(nil) do try
> ApplicationName := Config.PocketProgramName;
> Parameters.Clear;
> CommandLine := EmptyStr;
> Environment.Clear;
> Options := [poNewConsole];
> InheritHandles := False;
> try
> Execute;
> except
> got the exception error 87
> end
>
in Win32 the above lines work as expected.
More information about the Lazarus
mailing list