That still causes the annoying 'Exception' popup though. :(
I thought maybe there was a compiler directive or something you could use.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Robert Martin
Sent: Wednesday, 11 December 2002 3:46 p.m.
To: Multiple recipients of list delphi
Subject: Re: [DUG]: Suppressing exception popups in certain parts of
code.


Specify the exception to handle i.e.

  try
    Result := Sum div NumberOfItems; { handle the normal case }
  except
    on EDivByZero do Result := 0; { handle the exception only if needed }
    else raise;
  end;

Rob

Software engineer
Wild Software Ltd
Ph 03 338-1407
----- Original Message -----
From: "Andrew Thomas" <[EMAIL PROTECTED]>
To: "Multiple recipients of list delphi" <[EMAIL PROTECTED]>
Sent: Wednesday, December 11, 2002 3:38 PM
Subject: [DUG]: Suppressing exception popups in certain parts of code.


> I know its probably bad programming but is there a way to stop an
exsception
> coming up in the debugger in a certain part of the code?
>
> For instance say you had something like this:
>
> try
>   //error often occurs
> except
>   //unhandled for a reason
> end;
>
> And I just want that one unhandled exception to not keep coming up each
> time.
>
> Any Ideas?
>
> Cheers
>
> Andrew
>
> --------------------------------------------------------------------------
-
>     New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
>                   Website: http://www.delphi.org.nz
> To UnSub, send email to: [EMAIL PROTECTED]
> with body of "unsubscribe delphi"
> Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
>


---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/

Reply via email to