GUIDs cleanup - catastrophic (ArcObjects for ArcGIS Desktop)

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

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

http://forums.esri.com/Thread.asp?c=93&f=982&t=271730&mc=2#msgid838526
http://forums.esri.com/Thread.asp?c=93&f=1170&t=276291&mc=7#msgid855145

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

Now we have 2 forums??!!! 😞
Reply
0 Kudos
1 Reply
StefanOffermann
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()
  {
    try
    {
      // do smth.
      // may be an exception is raised...
    }
    catch (Exception ex)
    {
      // logging of error
      // do not throw exception!
    }
}
Reply
0 Kudos