Message 1 of 5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have a modeless window, which needs to watch the DocumentChanged event. There is no problem subscribing this event, but once I call in the Closed event of the window
doc.Application.DocumentChanged -= EventHandler[DocumentChangedEventArgs](doc_changed)
it raises the following Exception:
StandardError: Exception has been thrown by the target of an invocation. I haven't found any information about this yet nor I've experienced similar in the past. It might be important that this is a python script in the pyRevit environment.
Solved! Go to Solution.