Jump to content
  • Advertisement
Sign in to follow this  
Pallaris

.NET DirectX 9.0C D3DERR_OUTOFVIDEOMEMORY error

This topic is 2121 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi everyone.

 

Got an annoying unhandled exception while minimizing my app. If i press "Continue", application works fine after that. This exception doesnt appear if I run in debug mode. In my OnReset() I'm just reloading all textures. Any suggestions?  Thank you.


-2005532292 (D3DERR_OUTOFVIDEOMEMORY)
   ? Microsoft.DirectX.Direct3D.Device.Reset(PresentParameters[] presentationParameters)
   ? Microsoft.DirectX.Direct3D.Device.OnParentResized(Object sender, EventArgs e)
   ? System.Windows.Forms.Control.OnResize(EventArgs e)
   ? System.Windows.Forms.Form.OnResize(EventArgs e)
   ? System.Windows.Forms.Control.OnSizeChanged(EventArgs e)
   ? WeifenLuo.WinFormsUI.Docking.DockContent.OnSizeChanged(EventArgs e)
   ? System.Windows.Forms.Control.UpdateBounds(Int32 x, Int32 y, Int32 width, Int32 height, Int32 clientWidth, Int32 clientHeight)
   ? System.Windows.Forms.Control.UpdateBounds()
   ? System.Windows.Forms.Control.WmWindowPosChanged(Message& m)
   ? System.Windows.Forms.Control.WndProc(Message& m)
   ? System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   ? System.Windows.Forms.Form.WndProc(Message& m)
   ? System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   ? System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   ? System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Share this post


Link to post
Share on other sites
Advertisement

I've impleneted both OnDeviceLost and OnDeviceReset. OnDeviceLost simply disposes all textures, OnDeviceReset - loads them.

 

Also I'm using Microsoft.DirectX.Direct3D.Font objects in my applications. How should i handle them in Lost and Reset events? I've tried to remove using fonts in my applications just to be sure, but that exception still occured.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!