.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED)

0 REPLIES 0
Reply
Message 1 of 1
Luigi71
544 Views, 0 Replies

Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED)

Hi to all, as per the subject I'm getting this exception running the code below

The code works fine up to the bolded line (mg.Toolbars.Item(i).Visible = True), executing this instruction I get this exception : 'Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED)' (ex2.Message).

 

[...]

 

Dim mg As AcadMenuGroup

 Try 
 mg = Application.MenuGroups.Item(cuiname)

 Catch ex As System.Exception

 Dim mg2 As AcadMenuGroups = CType(Application.MenuGroups, AcadMenuGroups)
 mg2.Load(cuifile)

 mg = Autodesk.AutoCAD.ApplicationServices.Application.MenuGroups.Item(cuiname)
 Dim i As Integer
 

 Try
  For i = 0 To mg.Toolbars.Count - 1
   mg.Toolbars.Item(i).Visible = True
  Next
  Catch ex2 As System.Exception
  MsgBox(ex2.Message)
 End Try

 

End Try

 

[...]

 

The strange thing is that until a short time ago I don't had this problem!!!

Some suggestions or tips?

 

I'm running the code in Windows7 x64, Visualbasic 2008 Express Edition, Autocad 2010 x64.

See attachment for more informations on this issue.

Thanks to all in advance.

0 REPLIES 0

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

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost