Noxwizard / dnscrypt-winclient

Windows client for managing the DNSCrypt Proxy
MIT License
402 stars 81 forks source link

Minimize under Windows 8 causes InvalidOperationException #7

Closed krenaud closed 10 years ago

krenaud commented 11 years ago

Whenever I try to minimize the application it throws an InvalidOperationException. See below.

System is Windows 8 Pro.

\ Exception Text ** System.InvalidOperationException: Process has exited, so the requested information is not available. at System.Diagnostics.Process.EnsureState(State state) at System.Diagnostics.Process.get_MainWindowHandle() at dnscrypt_winclient.ApplicationForm.form_resized(Object sender, EventArgs e) at System.Windows.Forms.Control.OnResize(EventArgs e) at System.Windows.Forms.Form.OnResize(EventArgs e) at System.Windows.Forms.Control.OnSizeChanged(EventArgs e) at System.Windows.Forms.Control.UpdateBounds(Int32 x, Int32 y, Int32 width, Int32 height, Int32 clientWidth, Int32 clientHeight) at System.Windows.Forms.Control.UpdateBounds() at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ScrollableControl.WndProc(Message& m) at System.Windows.Forms.ContainerControl.WndProc(Message& m) at System.Windows.Forms.Form.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

\ Loaded Assemblies ** mscorlib Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.6400 (Win8RTMGDR.050727-6400)

CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll

dnscrypt-winclient Assembly Version: 1.0.0.0 Win32 Version: 1.0.0.0

CodeBase: file:///C:/Util/dnscrypt-winclient.exe

System.Windows.Forms Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.6387 (Win8RTM.050727-6300)

CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

System Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.6400 (Win8RTMGDR.050727-6400)

CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll

System.Drawing Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.6387 (Win8RTM.050727-6300)

CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

Accessibility Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.6387 (Win8RTM.050727-6300)

CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll

System.Configuration Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.6387 (Win8RTM.050727-6300)

CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll

System.Xml Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.6387 (Win8RTM.050727-6300)

CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll

System.Management Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.6387 (Win8RTM.050727-6300)

CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Management/2.0.0.0__b03f5f7f11d50a3a/System.Management.dll

Noxwizard commented 11 years ago

Can you see if this happens with the metro version? https://github.com/Noxwizard/dnscrypt-winclient/tree/metro/binaries It's built on a newer version of .NET.

krenaud commented 11 years ago

Sorry. The same exception occurs. :(

MickeyBadBad commented 11 years ago

I have no problem on Windows 8 Pro ...........

Noxwizard commented 10 years ago

I think this was caused by using DNSCrypt as a Windows service, which my GUI did not support at the time. If you still have the issue, let me know.