SFML community forums
Help => Graphics => Topic started 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:
...
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:
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.
Unhandled exception at 0x1002cb0b in 2D Shooter.exe: 0xC0000005: Access violation reading location 0xfeeefef6.
-
This is a known issue. Unfortunately it doesn't seem to be directly related to SFML. It usually happens with Intel graphics cards.
-
How would I catch the exception?