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

Author Topic: Image::LoadFromFile crash  (Read 1641 times)

0 Members and 1 Guest are viewing this topic.

jamesmintram

  • Newbie
  • *
  • Posts: 2
    • View Profile
Image::LoadFromFile crash
« on: August 05, 2009, 10:56:30 pm »
Hi there, I seem to have a problemw ith my application and I cant seem to work it out.

I have created a window and setup all of my openGL stuff before I come to load my image.

Then these 2 lines are executed:

   sf::Image newImage;
   newImage.LoadFromFile ( "particles.png" );

There is a load of garbled output to the console and then the program hangs, when I pause into the degbugger the location is still somewhere within the LoadFromFile function.

Is there likely to be some setting in the application properties?

I am using VS2008. I can run the OpenGL sample program which works without a problem.

Many thanks,

James Mintram

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Image::LoadFromFile crash
« Reply #1 on: August 05, 2009, 11:05:44 pm »
Are you sure that you're not mixing debug and release configurations? Can you show a minimal and complete example that reproduces the problem?
Laurent Gomila - SFML developer