curious
2008-05-05 05:35:02 UTC
I have a MDX program that is written in C#. Everything works fine as long as
I do not minimize the main form. As soon as I minimize the main form I get
the following error. I create the device in a usercontrol. I check for
DeviceLost and Reset the device in my program but it does not help. Any help
is appreciated.
Thanks.
Error in the application.
-2005530585 (D3DERR_DRIVERINTERNALERROR)
at Microsoft.DirectX.Direct3D.Device.Reset(PresentParameters[]
presentationParameters)
at Microsoft.DirectX.Direct3D.Device.OnParentResized(Object sender,
EventArgs e)
at System.EventHandler.Invoke(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnResize(EventArgs e)
at System.Windows.Forms.UserControl.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.WmWindowPosChanged(Message& m)
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.UserControl.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)
I do not minimize the main form. As soon as I minimize the main form I get
the following error. I create the device in a usercontrol. I check for
DeviceLost and Reset the device in my program but it does not help. Any help
is appreciated.
Thanks.
Error in the application.
-2005530585 (D3DERR_DRIVERINTERNALERROR)
at Microsoft.DirectX.Direct3D.Device.Reset(PresentParameters[]
presentationParameters)
at Microsoft.DirectX.Direct3D.Device.OnParentResized(Object sender,
EventArgs e)
at System.EventHandler.Invoke(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnResize(EventArgs e)
at System.Windows.Forms.UserControl.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.WmWindowPosChanged(Message& m)
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.UserControl.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)
--
MDX fan
MDX fan