You shouldn't call the Destroy destructor directly for a start.
You should generally call Free on objects, or more specifically, Release for
forms.

I'll do whatever I can to avoid empty exception handlers.  In fact, I've
gone as far as to produce coding standards for companies I've worked at
explicitly outlawing them. ;-)  In a similar vein, I'll never, ever ignore
compiler warnings or hints.

If I do leave an empty exception handler, I'll document the fact in the
exception handler, and the reasons why.

Do you do any logging in your app?  If so, I'd write something to a log at
the very least.  Is there nothing you can do to resolve the possible errors
you get?

HTH,

Conor

-----Original Message-----
From: Alistair George [mailto:[EMAIL PROTECTED]

Hi this is what i have been doing in the past to circumvent some possible
errors
when they are no big deal errors:
    try dmon.Form1.Destroy; except; end;

Any comments?
---------------------------------------------------------------------------
    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