Private Sub SetupDockableWindow() If m_dockableWindow Is Nothing Then Dim dockWindowManager As IDockableWindowManager dockWindowManager = CType(m_application, IDockableWindowManager) If Not dockWindowManager Is Nothing Then Dim windowID As UID = New UIDClass windowID.Value = regKey.GetValue("dwUID") 'DockableWindowGuid m_dockableWindow = dockWindowManager.GetDockableWindow(windowID) ' <-----on this line End If End If End Sub
i have tried using ADO.NET Entity Data Model in my ArcDesktop project using dockable windows.
but every time i start debugging im getting a error.
COMException was unhandled by user code
Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))Private Sub SetupDockableWindow() If m_dockableWindow Is Nothing Then Dim dockWindowManager As IDockableWindowManager dockWindowManager = CType(m_application, IDockableWindowManager) If Not dockWindowManager Is Nothing Then Dim windowID As UID = New UIDClass windowID.Value = regKey.GetValue("dwUID") 'DockableWindowGuid m_dockableWindow = dockWindowManager.GetDockableWindow(windowID) ' <-----on this line End If End If End Sub
Add a Try...Catch with some error checking. Or at minimum, step through and determine the exact line it is failing on.
m_dockableWindow = dockWindowManager.GetDockableWindow(windowID) ' <-----on this line
http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#//0023000000nq000000