Original Post
i am using c# with direct3d. I am using an instance from Sprite and when i close my program i think something wrong with deconstructing sprite... it gives me this: System.NullReferenceException was unhandled Message="Object reference not set to an instance of an object." Source="Microsoft.DirectX.Direct3DX" StackTrace: at Microsoft.DirectX.Direct3D.Sprite.OnLostDevice() at Microsoft.DirectX.Direct3D.Sprite.OnParentLost(Object sender, EventArgs e) at System.EventHandler.Invoke(Object sender, EventArgs e) at Microsoft.DirectX.Direct3D.Device.raise_DeviceLost(Object i1, EventArgs i2) at Microsoft.DirectX.Direct3D.Device.Finalize() Any help will be appreciated, thnx.