We have a VsPackage that extends Visual Studio 2008. For one customer, the System.Windows.Window.ShowDialog() method is failing with System.ArgumentOutOfRangeException. Here are the details we have:
First-chance exception at 0x74f4c44d (KernelBase.dll) in devenv.exe: 0x0000071A: The remote procedure call was cancelled.
An unhandled exception of type 'System.ArgumentOutOfRangeException' occurred in PresentationFramework.dll
Additional information: The parameter value must be greater than zero.
C:\Windows\SysWOW64\user32.dll: Symbols loaded (source information stripped).
C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\msenv.dll: Symbols loaded (source information stripped).
C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\devenv.exe: Symbols loaded (source information stripped).
C:\Windows\SysWOW64\kernel32.dll: Symbols loaded (source information stripped).
C:\Windows\SysWOW64\ntdll.dll: Symbols loaded (source information stripped).
>PresentationFramework.dll!System.Windows.Window.ShowDialog() + 0x357 bytes
As expected, we call the IVsUIShell.EnableModeless() with FALSE and TRUE before and after showing the modal dialog respectively.
This is working for us all the time, except for this one customer, do you have more details we can help them with?