Wrap the main function in try catch finally and log to file.

On Tue, Oct 2, 2012, at 09:03 PM, Michael Madigan wrote:
> I'm trying to determine whether a program is terminating or going through
> the error handler correctly and recovering.   Is there anyway to do this? 
> 
> Up until now, I've been assuming that my error handler would display an
> error and then recover, but I think I'm assuming too much here, what I
> think is a simple error may require the person to restart the program,
> which is a major annoyance. 
> 
> I track when someone logs into the system, but many of the users keep two
> sessions open to go back and forth between customers.   I'm going to add
> a logout time to the logs to go with the login time, but I still want to
> count the number of "error and terminate" errors.  
> 
> Any ideas
> 
> 
> --- StripMime Report -- processed MIME parts ---
> multipart/alternative
>   text/plain (text body -- kept)
>   text/html
> ---
> 
[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/1349209134.5126.140661135624701.65ac6...@webmail.messagingengine.com
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to