Message 1 of 9
Starting Inventor via Com - Closing will hold the Process open

Not applicable
07-07-2011
12:59 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
im calling the Inventor-API via COM in C#. Frist I'm creating the Object, then setting the Visible-Property to true. After that im releasing the object (I'm not calling the Quit-Method). If the user then closes the Inventor Window, the process will stuck in the Taskmanager, and also wont be able to be interopted anymore.
[CODE]
Inventor.Application app = Activator.CreateInstance(Type.GetTypeFromProgID("Inventor.Application")) as Inventor.Application;
app.Visible = true;
Marshal.FinalReleaseComObject(app);
app = null;
[/CODE]
How can i tell Inventor, to really close completly after the User closes the Window?
Greetings
Felix