Automatically logging errors and terminating applications

.NET obfuscator and automated error reporting

Moderators: Luke Jefferson, melvyn.harbour, dom.smith

Automatically logging errors and terminating applications

Postby jdh » Fri Oct 11, 2013 2:37 pm

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?
jdh
 
Posts: 3
Joined: Fri Oct 11, 2013 2:30 pm

Postby Chris.Allen » Mon Oct 14, 2013 12:28 pm

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.
Chris.Allen
 
Posts: 594
Joined: Thu Mar 12, 2009 4:17 pm

Postby jdh » Mon Oct 14, 2013 2:55 pm

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.
jdh
 
Posts: 3
Joined: Fri Oct 11, 2013 2:30 pm

Postby jdh » Mon Oct 14, 2013 5:20 pm

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
jdh
 
Posts: 3
Joined: Fri Oct 11, 2013 2:30 pm


Return to SmartAssembly 6

Who is online

Users browsing this forum: No registered users and 1 guest