Hi,
I am having this problem when i try to execute the .exe of my application
"Debug assertion failed !, Expression invalid null pointer"
After a bit of googling i think so i know where the problem lies, but have no idea how to solve it.
Below is the relevant piece of code.
size_t idx;
// create the initial texture
atlases.push_back(new TextureAtlas( image_names.size()));
// load the texture
for (idx = 0; idx < image_names.size(); ++idx) {
//load the image
TextureInformation *ti = new TextureInformation (idx, folder_location_str, image_names[idx]);
During the execution of the code at the line where ti is initialized and declared the values at local tab(in ms visual c++ 2008) are something like below.
ti TextureInformation *
idx CXX0030: Error: expression cannot be evaluated
image_path {npos=4294967295 _Bx={...} _Mysize=??? ...} std::basic_string<char,std::char_traits<char>,std::allocator<char> >
image_name {npos=4294967295 _Bx={...} _Mysize=??? ...} std::basic_string<char,std::char_traits<char>,std::allocator<char> >
image CXX0017: Error: symbol "" not found
For some reason: idx and image shows error here and this only happens during the first iteration of the for loop. Below is the content of ti during the second iteration