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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - ismetteren

Pages: [1]
1
Graphics / Program crashes on Image.LoadFromFile()
« on: September 20, 2009, 02:20:06 pm »
Thank you very much for the quick answer!

It works now :D

2
Graphics / Program crashes on Image.LoadFromFile()
« on: September 20, 2009, 01:29:44 pm »
i have this code:
Code: [Select]
Image* image;
std::cout << "test64" << std::endl;
//Problem with is with the load from file function!!
if(image->LoadFromFile(path)) {
std::cout << "test123" << std::endl;
}
else {
std::cout << "testawd123" << std::endl;
}
std::cout << "test65" << std::endl;
imageLibary[path] = image;
std::cout << "test66" << std::endl;

As you can see, i cant really get my debugger to work, but i have debugged the program using alot of cout instead.

the program stops responding on the line "if(image->LoadFromFile(path)) {"

It dosent even output any of the two possible outputs from the if statement.

What can the problem be? shouldent a non-existing file path just make the function return 0 so my program could go on? (this might be the problem, since im not sure from what file i should start my realative filepath. The sourcefile, the .o file or the .exe file?)

Pages: [1]
anything