Automatically logging errors and terminating applications

jdhjdh Posts: 4
edited October 14, 2013 12:20PM in SmartAssembly
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?

Comments

  • So the requirement is:

    - 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.
  • Yeah, that's the route I'm currently exploring.

    I believe I can get what I want. I'll be sure to post back here when I find a working solution.
  • Thanks Chris.Allen, you got me on the right track by mentioning the 'Without UI' module. Not sure how I didn't see it.

    I documented my quick solution on StackOverflow: http://stackoverflow.com/questions/1931 ... rtassembly
Sign In or Register to comment.