SFML community forums

Help => Graphics => Topic started by: e_barroga on August 30, 2009, 04:49:13 am

Title: Bug - Not using a loaded image
Post by: e_barroga on August 30, 2009, 04:49:13 am
When you exit the application and an image was loaded but not used I get the following: http://img198.imageshack.us/img198/3743/63097302.png

Here's my code:
Code: [Select]

    ...
    m_imgMgr.Load(dir + "sfml.png", "img_sfml");
    m_imgMgr.Load(dir + "sfml.png", "img");


Basically it just loads the image and stores into a std::map with the second parameter as the key.

The first image is used:
Code: [Select]

SetImage(m_engine.GetImage("img_sfml"));


But the second is not. Removing the line that loads the second image makes the program terminate without any unhandled exceptions occuring.

Code: [Select]

Unhandled exception at 0x1002cb0b in 2D Shooter.exe: 0xC0000005: Access violation reading location 0xfeeefef6.
Title: Bug - Not using a loaded image
Post by: Laurent on August 30, 2009, 09:57:03 am
This is a known issue. Unfortunately it doesn't seem to be directly related to SFML. It usually happens with Intel graphics cards.
Title: Bug - Not using a loaded image
Post by: e_barroga on September 05, 2009, 08:58:16 am
How would I catch the exception?