SFML community forums

Help => Graphics => Topic started by: jamesmintram on August 05, 2009, 10:56:30 pm

Title: Image::LoadFromFile crash
Post by: jamesmintram 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
Title: Image::LoadFromFile crash
Post by: Laurent 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?