GUIDs cleanup - catastrophic (ArcObjects for ArcGIS Desktop)

06-07-2010 06:56 AM
New Contributor III
Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))

Does anyone know how to solve this? Some others experienced it before ...

Am getting this for calling dockable windows ... and its only on one particular machine.

Now we have 2 forums??!!! 😞
0 Kudos
1 Reply
Occasional Contributor II
I have solved this issue in my custom dockable window (C#). The reason was an exception in the constructor of the Windows Form implementing IDockableWindow. When you experience the error message "HRESULT: 0x8000FFFF, E_UNEXPECTED", this is likely because of an exception in your constructor. I resolved it by executing all constructor code within a try-catch-block, logging the error and swallowing the exception.

public partial class MyDockWindow : UserControl, IDockableWindowDef, IDockableWindowImageDef, IDockableWindowInitialPlacement
  public MyDockWindow()
      // do smth.
      // may be an exception is raised...
    catch (Exception ex)
      // logging of error
      // do not throw exception!
0 Kudos