Hello,

My question is probably more suitable for another list. In fact I
had asked it on fpc-pascal,   but now I am no longer able to
post on that list because my mails are rejected by the sorbs
spam checker who blacklisted nproxy.gmail.com [64.233.182.207].
Very irritating ...

Anyway, here is my problem:
I am trying to call other processes with the TProcess class and
to detect possible errors with the EProcess exception.
The compiler says it doesn't know what EProcess is.

>   try
>      p := TProcess.Create(nil);    p.CommandLine := 'psql';
>      p.Options := p.Options + [poStderrToOutPut,poNewConsole,poWaitOnExit];
>      p.Execute;
>   except
>      on EProcess do ShowMessage('EProcess !');
>   end;

Michael van Canneyt answered me that i should write :

      on E : EProcess do ShowMessage('EProcess !');

instead, but the compiler still doesn't recognize EProcess.

I have downloaded the fpc 2.0.2 sources and looked for EProcess,
but i couldn't find it.     Is EProcess a new functionality that
doesn't exist in fpc 2.0.2  ?   But the FCL manual installed with
fpc 2.0.2 says that TProcess.Execute rasies the EProcess exception
in case of error !

Please enlighten me where could I find this EProcess exception .


Cheers,
Adrian Maier

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to