i have this code:
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?)