Message 1 of 6
Catastrophic failure

Not applicable
01-06-2012
08:11 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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