COM Object that has been separated from its underlying RCW cannot be used

COM Object that has been separated from its underlying RCW cannot be used

NachoShaw
Advisor Advisor
3,318 Views
3 Replies
Message 1 of 4

COM Object that has been separated from its underlying RCW cannot be used

NachoShaw
Advisor
Advisor

Hi

 

Anyone know what this error is? Never had it last week but it appears now since I ran an update.... Ive tried turning just about everything off but I still get it when I close inventor. It is related to my addin I am working on because when I unload it, I don't get the error.

 

Here is the error

com object.jpg

 

Here are my references

references.jpg

 

Any help greatly appreciated, I really don't want to have to start from scratch 🙂

 

 

Thanks

 

Nacho

Nacho
Automation & Design Engineer

Inventor automation Programmer (C#, VB.Net / iLogic)
Furniture, Sheet Metal, Structural, Metal fab, Tradeshow, Fabrication, CNC

EESignature


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.


0 Likes
3,319 Views
3 Replies
Replies (3)
Message 2 of 4

Martin-Winkler-Consulting
Advisor
Advisor

Hi,

may be the same problem as in my post :

https://forums.autodesk.com/t5/inventor-customization/error-message-when-closing-inventor-2017/m-p/7...

Martin Winkler
CAD Developer
Did you find this post helpful? Feel free to like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.


EESignature

0 Likes
Message 3 of 4

NachoShaw
Advisor
Advisor

Hi Martin

 

Weird. I too unloaded the interactive Tutorial and now i do not get the error. That is strange because i dont have anything in my application that would require the interactive tutorial. Would like to establish exactly what the error is because i cant make an addin that requires this to be switched off, especially when other addins don't experience the same issue...

 

@Anonymous

Have you ever seen this before?

 

 

Regards

 

Nacho

Nacho
Automation & Design Engineer

Inventor automation Programmer (C#, VB.Net / iLogic)
Furniture, Sheet Metal, Structural, Metal fab, Tradeshow, Fabrication, CNC

EESignature


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.


0 Likes
Message 4 of 4

Martin-Winkler-Consulting
Advisor
Advisor

Hi Nacho,

it seems to be that this error was new up to inventor 2017. In 2016 it doesn't happened.

I solved it temporarily by deleting this lines in the addin server class:

 

 'If AddinGlobal.InventorApp IsNot Nothing Then
   'Marshal.FinalReleaseComObject(AddinGlobal.InventorApp)
 'End If

Now, Autodesk should have a look at the interactive tutorial dll.

 

 

 

Martin Winkler
CAD Developer
Did you find this post helpful? Feel free to like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.


EESignature