Advertisement

[HAAF's Game Engine] - Access violation when calling hgeSprite.Render

Started by June 19, 2011 06:36 PM
-1 comments, last by lucastk93 13 years, 8 months ago
[font=Arial,]

I have a problem when trying to run my game that uses the Haaf's Game engine, this exception is thrown:

Unhandled exception at 0x72daad10 (TakaGUI.dll) in Game.exe: 0xC0000005: Access violation reading location 0x00000000.

This is the method where the exception occurs:

Code: void Draw(hgeSprite* sprite, float x, float y) { sprite->Render(x, y); }

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.

[/font]

This topic is closed to new replies.

Advertisement