Automatically logging errors and terminating applications
jdh
Posts: 4
I have a customer-facing application that needs to alert me when an error/exception occurs, and then terminate itself.
I've been able to log errors via the Error Reporting feature of Smart Assembly, but I've not found a way to automatically log the error (without the error reporting window coming up, requiring user interaction) and terminate the application. Is this possible?
I've been able to log errors via the Error Reporting feature of Smart Assembly, but I've not found a way to automatically log the error (without the error reporting window coming up, requiring user interaction) and terminate the application. Is this possible?
Comments
- non-interactive mechanism of trapping and sending report for all unhandled exceptions and then terminating application?
Out of the box you do get a - non-interactive mechanism of trapping and sending report for all unhandled exceptions (its the error report template: 'Without UI') but I couldn't guarantee it always terminates.
For that I would recommend using the SDK so you can adapt the given templates with more specific code. The SDK comes with the professional edition.
I believe I can get what I want. I'll be sure to post back here when I find a working solution.
I documented my quick solution on StackOverflow: http://stackoverflow.com/questions/1931 ... rtassembly