Message 1 of 5
OnSaveDocument Event
Not applicable
07-23-2014
01:42 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am building a small addin for Inventor, and I have a problem when attatching a delegate to the Application.ApplicationEvents.OnSaveDocument-event.
Setting a breakpoint on this line of code when debugging:
Application.ApplicationEvents.OnSaveDocument += new ApplicationEventsSink_OnSaveDocumentEventHandler(OnSaveDocument_Delegate);
and continuing the execution after the breakpoint was hit, will result in a working addin, i.e the OnSaveDocumentEvent fires as it should.
BUT. When not having the breakpoint enabled the event doesn't work...it's almost as if things moves too fast for it to register?!
I've tried executing the adding of the delegate on a separate thread, but that's not working.
Anyone got an idea what I can do about this?.