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.