System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> SlimDX.Direct3D9.Direct3D9Exception: D3DERR_INVALIDCALL: Invalid call (-2005530516) at SlimDX.Result.Throw[T](Object dataKey, Object dataValue) at SlimDX.Result.Record[T](Int32 hr, Boolean failed, Object dataKey, Object dataValue) at SlimDX.Direct3D9.Device.Reset(PresentParameters[] presentParameters) at Client.Envir.DXManager.ResetDevice() at Client.Envir.DXManager.SetResolution(Size size) at Client.Controls.DXScene..ctor(Size size) at Client.Scenes.GameScene..ctor(Size size) at Client.Envir.CConnection.Process(StartGame p) --- End of inner exception stack trace --- at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters) at Library.Network.BaseConnection.ProcessPacket(Packet p) at Library.Network.BaseConnection.Process()State = {X=0,Y=0,Width=1600,Height=900}System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> SlimDX.Direct3D9.Direct3D9Exception: D3DERR_INVALIDCALL: Invalid call (-2005530516) at SlimDX.Result.Throw[T](Object dataKey, Object dataValue) at SlimDX.Result.Record[T](Int32 hr, Boolean failed, Object dataKey, Object dataValue) at SlimDX.Direct3D9.Device.Reset(PresentParameters[] presentParameters) at Client.Envir.DXManager.ResetDevice() at Client.Envir.DXManager.SetResolution(Size size) at Client.Controls.DXScene..ctor(Size size) at Client.Scenes.GameScene..ctor(Size size) at Client.Envir.CConnection.Process(StartGame p) --- End of inner exception stack trace --- at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters) at Library.Network.BaseConnection.ProcessPacket(Packet p) at Library.Network.BaseConnection.Process()State = {X=0,Y=0,Width=1600,Height=900}System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> SlimDX.Direct3D9.Direct3D9Exception: D3DERR_INVALIDCALL: Invalid call (-2005530516) at SlimDX.Result.Throw[T](Object dataKey, Object dataValue) at SlimDX.Result.Record[T](Int32 hr, Boolean failed, Object dataKey, Object dataValue) at SlimDX.Direct3D9.Device.Reset(PresentParameters[] presentParameters) at Client.Envir.DXManager.ResetDevice() at Client.Envir.DXManager.SetResolution(Size size) at Client.Controls.DXScene..ctor(Size size) at Client.Scenes.GameScene..ctor(Size size) at Client.Envir.CConnection.Process(StartGame p) --- End of inner exception stack trace --- at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters) at Library.Network.BaseConnection.ProcessPacket(Packet p) at Library.Network.BaseConnection.Process()State = {X=0,Y=0,Width=1600,Height=900}System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> SlimDX.Direct3D9.Direct3D9Exception: D3DERR_INVALIDCALL: Invalid call (-2005530516) at SlimDX.Result.Throw[T](Object dataKey, Object dataValue) at SlimDX.Result.Record[T](Int32 hr, Boolean failed, Object dataKey, Object dataValue) at SlimDX.Direct3D9.Device.Reset(PresentParameters[] presentParameters) at Client.Envir.DXManager.ResetDevice() at Client.Envir.DXManager.SetResolution(Size size) at Client.Controls.DXScene..ctor(Size size) at Client.Scenes.GameScene..ctor(Size size) at Client.Envir.CConnection.Process(StartGame p) --- End of inner exception stack trace --- at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters) at Library.Network.BaseConnection.ProcessPacket(Packet p) at Library.Network.BaseConnection.Process()State = {X=0,Y=0,Width=1600,Height=900}