.NET

Reply
Contributor
Luigi71
Posts: 22
Registered: ‎08-30-2011
Message 1 of 1 (213 Views)

Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED)

213 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.

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community