What I've done in a few applications, and has worked well for me, is to create 
an exception handler that displays and logs the exception, then closes the 
application .  That way I can look at the log and see if exceptions have 
happened, even if the user doesn't tell me.  Or if they just tell me "there was 
an error... I don't know what the message was" I can see what it was.  In cases 
where I want to know about exceptions right away I have the exception handler 
send me e-mail.

procedure TForm1.AppException(Sender: TObject; E: Exception);
begin
Application.ShowException( E);
Log( E.Message);        // The Log function saves the date, time, & user name 
along with the message
Close;
end;

procedure TForm1.FormCreate(Sender: TObject);
begin
Application.OnException := AppException;
...



David


-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED] 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/delphi-en/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to