Message 1 of 4
About modeless dialogs are automatically released
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I wrote a plugin last year that copied the element types from one document to another, and it worked fine at the time, but now there is a problem.
-----------------------------------------------------------------
The simulation steps are as follows:
1. Open a revit document “1.rvt”;
2. Open a modeless dialog box;
3. Create a new revit document “2.rvt”;
4. Close the document “2.rvt”;
At this time, the modeless dialog is closed;
-----------------------------------------------------------------
The program reports an error:
Unable to access the released object, -2146232798
-----------------------------------------------------------------
What is the solution?
Thank you!