.NET

Reply
Active Contributor
Luigi71
Posts: 27
Registered: ‎08-30-2011
Message 1 of 1 (245 Views)

Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED)

245 Views, 0 Replies
05-11-2013 05:16 AM

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.

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are You Going To Be @ AU 2014? Feel free to drop by our AU topic post and share your plans, plug a class that you're teaching, or simply check out who else from the community might be in attendance. Ohh and don't forgot to stop by the Autodesk Help | Learn | Collaborate booths in the Exhibit Hall and meet our community team if you get a chance!