Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Fuzztrek

Unable to Release() Vertex Buffer in Fullscreen Mode

This topic is 5751 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

Hello all, I''ve created a little shell for future programs, with direct3D initalized and such. It has the ability to ask the user if he/she would like to view the crapiness in fullscreen or windowed mode, and made the appropriate property changes in D3D for both cases. However, when I create a vertex buffer, lock the buffer, copy a few vertex''s over, unlock it, and try to release it at the end, my program crashes. I''ve narrowed it down to that exact line where I release the buffer. If I comment out that line, the program executes just fine. Unfortunatly, there''s more. Before I added this buffer, I stupidly ran the program knowing that not everything was complete yet (d3d stuff was not all finished) and of course, it froze my comp. So I restarted... without saving. When i came back, everything was looking like a library file in ms vc++ 6.0, but in notepad it was fine.. so i copied the stuff over from notepad into vc. I don''t know if this would have anything to do with it, but i figure it can''t hurt my post. Any ideas are greatly appreciated! Thanks in advance! - Fuzztrek ¬_¬

Share this post


Link to post
Share on other sites
Advertisement
You''re not trying to release it AFTER you release your device are you?

Neil

WHATCHA GONNA DO WHEN THE LARGEST ARMS IN THE WORLD RUN WILD ON YOU?!?!

Share this post


Link to post
Share on other sites
No, I release the vertex buffer, then the device, and then the direct3D object.

Also, i forgot to mention that it only crashes when i select fullscreen mode. in windowed mode, it closes fine.

¬_¬

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

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

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!