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

Author Topic: Bug - Not using a loaded image  (Read 1897 times)

0 Members and 1 Guest are viewing this topic.

e_barroga

  • Jr. Member
  • **
  • Posts: 76
    • View Profile
Bug - Not using a loaded image
« 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.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Bug - Not using a loaded image
« Reply #1 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.
Laurent Gomila - SFML developer

e_barroga

  • Jr. Member
  • **
  • Posts: 76
    • View Profile
Bug - Not using a loaded image
« Reply #2 on: September 05, 2009, 08:58:16 am »
How would I catch the exception?

 

anything