The function is part of a dll-project that i refer to in my main c++ project. So i'm basically doing this:
I create a hgeSprite. I pass it to this method in my dll-project. The method calls the sprite's Render method. And then the exception occurs.
Now i'm confused because when i call the Render method in my main-project no error happens, but as soon as i pass the sprite to my dll-project and call the same method the exception occurs.