[Lazarus] Is it possible to find the location of an EAccessViolation, with Lazarus?

Carlos E. R. robin.listas at telefonica.net
Sat May 12 20:04:45 CEST 2018


On 2018-05-12 18:35, Orbán Árpád via Lazarus wrote:
> Hi Carlos,
> 
> Try add poUsePipes to TProcess.Options:
> 
>>  AProcess := TProcess.Create(nil);
>>     try
>>        AProcess.Executable := '/usr/local/bin/egctl';
>>        AProcess.Parameters.Add('Regleta');
>>        AProcess.Parameters.Add('off');
>>        AProcess.Parameters.Add('off');
>>        AProcess.Parameters.Add('off');
>>        AProcess.Parameters.Add('off');
> 
>         AProcess.Options := AProcess.Options + [poUsePipes];
> 
>>
>>        AProcess.Execute;

Ah. Thanks. I had commented that out by mistake. Actual code was:

      {$ifDEF Dummy}
      AProcess.Parameters.Add('Regleta');
      AProcess.Options := [poWaitOnExit, poUsePipes];
      {$else}
      AProcess.Parameters.Add('Regleta');
      AProcess.Parameters.Add('off');
      AProcess.Parameters.Add('off');
      AProcess.Parameters.Add('off');
      AProcess.Parameters.Add('off');
      {$endIf}

And "Dummy" was not defined.

Although the child is not using pipes :-?

-- 
Cheers / Saludos,

		Carlos E. R.
		(from 42.3 x86_64 "Malachite" at Telcontar)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: OpenPGP digital signature
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20180512/9fafce73/attachment.sig>


More information about the Lazarus mailing list