Quantcast
Channel: GameDev.net
Viewing all articles
Browse latest Browse all 17625

Access violation reading location 0xDDDDDDDD.

$
0
0

So, I'm trying to create a sprite class for my game however I can't seem to get it to work.

 

When trying to render my texture using SDL_RenderCopy() it causes a exception and my game crashes with the error :

Access violation reading location 0xDDDDDDDD. 

When checking SDL_GetError() right before I try to render the texture, there are no errors.

 

So far, I know that the error means I'm trying to use a "bad" pointer, however I can't seem to find any bad pointers in my code.

 

This is what my sprite class …


Viewing all articles
Browse latest Browse all 17625

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>