Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Catastrophic failure

5 REPLIES 5
Reply
Message 1 of 6
KentKeller
783 Views, 5 Replies

Catastrophic failure

System.Runtime.InteropServices.COMException was caught
  ErrorCode=-2147418113
  Message=Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))

Any ideas why Running Inventor 2012 Apprentice, VB.Net 10, I get the above error with the basic setup as shown below?

I will go through a couple of files before it hits the catch and I think it always works on the first retry. 

 

       oApprentice = New ApprenticeServerComponent
        Dim oDoc As ApprenticeServerDrawingDocument = Nothing
        Try

            Dim i As Integer = list.Count
            While System.Math.Max(System.Threading.Interlocked.Decrement(i), i + 1)
retry:
                Try
                    oDoc = oApprentice.Open(list(i))
                Catch ex As Exception

                    iTry = iTry + 1
                    If iTry <= 3 Then
                        GoTo ReTry
                    End If
                End Try
                iTry = 0
 
                oDoc.Close()
                oDoc = Nothing
                list.RemoveAt(i)
                UpdateList()
            End While

 

 

Kent Keller
KWiKMcad

5 REPLIES 5
Message 2 of 6

same error here, except i'm doing a totally different thing, i think it's because of multiple instances of inventor being launched ... or something that regards th translator plugins, in inventor 2013 i don't have this issue

Message 3 of 6
adam.nagy
in reply to: KentKeller

Hi Kent,

 

Are you running multiple instances of Inventor? Are you using multiple threads by any chance?

Any info you could provide about the context in which this code is running?

 

You could also rewrite the code to get rid of 

System.Threading.Interlocked.Decrement

I guess it was added by a code converter when you converted --i from C# to VB.NET?

You could use a For Each instead to iterate through the contents of the list.

 

Thank you,



Adam Nagy
Autodesk Platform Services
Message 4 of 6

I'm launching multiple instances of inventor in separate task/thread using the TPL for each instance i get the translator addin and try to save them as a different format, seems that it has something to do with the document beying opened in non visible behaviour

Message 5 of 6

Hi,

 

did you mean when you use Translator Addin with Inventor  = invisible, you got a problem? I do not hear a limitation for such scenario. Could you elaborate or share more information/dataset?

Message 6 of 6

take a look at case num: 08044401 in adn

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report