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
mg = Application.MenuGroups.Item(cuiname)
Catch ex As System.Exception
Dim mg2 As AcadMenuGroups = CType(Application.MenuGroups, AcadMenuGroups)
mg = Autodesk.AutoCAD.ApplicationServices.Application.M
Dim i As Integer
For i = 0 To mg.Toolbars.Count - 1
mg.Toolbars.Item(i).Visible = True
Catch ex2 As System.Exception
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.
Access a broad range of knowledge to help get the most out of your products and services.