Quantcast
Viewing all articles
Browse latest Browse all 14319

Catch AutoCAD on Shutdown after Fatal Exception?

I have this application I'm working on where I can't just start it in a try{}catch{} in a CommandMethod.  In fact, the best way (too long a story for this post) I could initialize some objects to manage WCF callbacks in the main application thread was via a combination use of the IExtensionApplication's Initialize() and Application.Idle event.  That part works wonderful, but with an unfortunate side-effect.  If AutoCAD crashes due to some fatal exception, I'm unable to report back to the WCF service the change in AutoCAD state. 

 

So, basically (without going into a lot of detail) the question is this:

 

How do I capture an AutoCAD crash event so that I can finalize closing of specific resources when initializing an assembly via the IExtensionApplication's Initialize()?

Image may be NSFW.
Clik here to view.

Viewing all articles
Browse latest Browse all 14319

Trending Articles