Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: [Solved] Problems with Sprite and Shapes  (Read 2656 times)

0 Members and 1 Guest are viewing this topic.

lohr

  • Newbie
  • *
  • Posts: 15
    • View Profile
[Solved] Problems with Sprite and Shapes
« 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"

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
[Solved] Problems with Sprite and Shapes
« Reply #1 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.
Laurent Gomila - SFML developer

lohr

  • Newbie
  • *
  • Posts: 15
    • View Profile
[Solved] Problems with Sprite and Shapes
« Reply #2 on: June 24, 2008, 10:03:26 am »
Thank you very much :)
All is working fine now!