Quit Inventor Process...

Quit Inventor Process...

Anonymous
Not applicable
296 Views
1 Reply
Message 1 of 2

Quit Inventor Process...

Anonymous
Not applicable
Hei,
I opened Inventor as a Hidden Process using CreateObject() function in Vb.net 2005.
I tried to close the inventor using Inventor.Application.Quit() method. But the Inventor could not be closed using the Quit() method.

In 'windows xp professional' the inventor process will be terminated when the 'executing process' ends.

But in 'Windows Vista' the inventor process exists even after 'executing Process's' termination.


How can I close the Inventor Process both in XP and Vista? Help me in this...

Thanks in Advance.



Vinodh.A
0 Likes
297 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
I'm not sure why the difference in behavior on XP and Vista. I'm guessing
you are holding onto a reference to the Inventor application object long
enough (maybe declared in class scope) that the garbage collection cannot
get to it.
I would try moving the reference to a more local scope, if possible. You
could also try
System.Runtime.InteropServices.Marshal.FinalReleaseComObject(inventorApplication)
after the Quit() call to force release of the underlying COM object and
maybe do a garbabe collection after this to free the reference (garbage
collection is expensive, so make sure you need it).

-Venkatesh.

wrote in message news:5792813@discussion.autodesk.com...
Hei,
I opened Inventor as a Hidden Process using CreateObject() function in
Vb.net 2005.
I tried to close the inventor using Inventor.Application.Quit() method. But
the Inventor could not be closed using the Quit() method.

In 'windows xp professional' the inventor process will be terminated when
the 'executing process' ends.

But in 'Windows Vista' the inventor process exists even after 'executing
Process's' termination.


How can I close the Inventor Process both in XP and Vista? Help me in
this...

Thanks in Advance.



Vinodh.A
0 Likes