Original Post
currently im writing this hobby game in C# using DX9 i have it working in full screen mode and all is well except for this one problem. I cant imagine this error happening often, but i dont really understand why it does.... if i click in any one of the corners, like (0,0), (0, 799), etc. i get an unhandled exception. DeviceLostException to be precise. the info on this says 'The device has been lost but cannot be reset at this time.' which says to me that even if i handle the exception, the program will have to terminate. is the only way to avoid this problem to programmatically make it so the user cannot move the mouse the these coordinates? here is my code... public static void Render() { DG_Device.Clear(ClearFlags.Target, System.Drawing.Color.Black, 1.0f, 0); DG_Device.BeginScene(); m_States[m_States.Count - 1](); DG_Device.EndScene(); DG_Device.Present(); } and the exception occurs on the line with 'DG_Device.Present();' btw, the code excecuted here 'm_States[m_States.Count - 1]();' just calls an update function (which will have a specific render function) to the state the game is at. (like titlescreen, save screen, etc.) thanks for you help, Josh