SFML community forums

Help => Graphics => Topic started by: lohr on June 24, 2008, 08:59:48 am

Title: [Solved] Problems with Sprite and Shapes
Post by: lohr on June 24, 2008, 08:59:48 am
Hello,

I have 2 different problems...I am actually working me through the different tutorials and now i have my first problems.
I am using the Microsoft VC 2005 Full.

If I do this(same with sprites and images):
Code: [Select]
if (!BackgroundImage.LoadFromFile("background.jpg"))
        return EXIT_FAILURE;

i get following error:
Quote
Unbehandelte Ausnahme bei 0x7c43eba2 in SFML.exe: 0xC0000005: Zugriffsverletzung beim Lesen an Position 0x00133000.

the picture is at the right place...

If i want to run the shape tutorial, i am getting this:
Quote
Unbehandelte Ausnahme bei 0x104817fd (msvcp80d.dll) in SFML.exe: 0xC0000005: Zugriffsverletzung beim Schreiben an Position 0xcccccccc.

and he is jumping to debuging in "xutility"...

Any tips here?
Thank you very much!

Regards,
Alex "lohr"
Title: [Solved] Problems with Sprite and Shapes
Post by: Laurent on June 24, 2008, 09:56:59 am
Are you using debug SFML libraries (sfml-xxx-d.lib) in debug build ? Mixing release libraries with debug build (and vice-versa) can lead to this kind of crash.
Title: [Solved] Problems with Sprite and Shapes
Post by: lohr on June 24, 2008, 10:03:26 am
Thank you very much :)
All is working fine now!