Peter,

How are you testing for a Nil pointer?  Also check the ExceptObject value.
I have never come across this problem, except when I am debugging - if I
have break on exception, and if I have optimisation turned on (ought to
really turn this off when debugging) or stack frames turned off, Delphi can
sometimes get confused and refuse to give me correct values for program
variables.  Sometimes it gives me the wrong scope.  I also use a slightly
different approach:

try
  ...
except
  with Exception(ExceptObject) do ...
end;


Dennis.

-----------------------------------------------------
Dennis Chuah, BE (Hons) [mailto:[EMAIL PROTECTED]]
Manager, Product Development
Contec Data Systems Ltd. [http://www.contecds.com]
tel: +64-3-3580060 ext-775 fax: +64-3-3588045


> Doing the following :
>     Except
>       On E : Exception Do
>
> Sometimes gives me an empty (nil) E enen though I have
> explicityly created
> an exception using raise Exception.Create.



---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to