Jump to content
  • Advertisement
Sign in to follow this  
Zdman

Memory Access Error while using ddutil

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

this is the line that's being called my_sprite.lpDDS = my_sprite.lpCD->GetDDrawSurface(); but pretty much my_sprite.lpCD->GetDDrawSurface() is the error this is the function in a public section of a class LPDIRECTDRAWSURFACE7 GetDDrawSurface() { return m_pdds; } m_pdds is a private directdraw object in the class CSurface and i'm trying to use it in the class CDisplay. Maybe I'm doing this incorrectly, advice is greatly appreciated.

Share this post


Link to post
Share on other sites
Advertisement
Thx. I called the function to create it but forgot to put a check if it failed or not. When I did this I found out that it was failing. That solved that problem so off I go to the drawing boards to figure out why it's failing. Thx again.

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!