Original Post
Hi all, I have written a small wrapper for ASSIMP (3D model loading lib) that converts it to my own model format. I get an error when it tries to resize a std::vector, the values going into resize are perfectly fine. The code for ASSIMP is sound, but it still crashes with : Debug Assertion Failed! Expression : vector insert iterator out range The real problem is that I have 2 other projects that the exact same code works perfectly fine in. I just created a project that simply has : And that works fine, but in just one project (where the files and lib files were copied from to create the above) crashes with the debug assertion error. Does anyone have any ideas as to what could cause this? As I mentioned the code above from ModelImporter and the Assimp library and library files, and the model files were copied to the project above from the project that gives this error.
#include <Windows.h>
#include "ModelImporter.hpp"
//The win main
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
{
ModelImporter mi;
M_Model model;
if(! mi.Load("Shuttle01.3DS", model)) return -1;
return 0;
}