Hi, I’m writing an aplication in c++ and i’m trying to implement collada dom on it. I’ve never used it before, so I’m using the tutorial in this site to learn how to do it.
I did everything on the first part of the tutorial (“DOM guide: Setting up”) and it went OK, I include it in my aplication and it compiles OK.
Now I’m trying to load up some info from a dae file I download from http://collada.org/owl, just a box, I copy exactly the code on the first example in the tutorial and I get and error:
“Unhandled exception at 0x7c81eb33 in TestGame.exe: Microsoft C++ exception: std::bad_alloc at memory location 0x0012ea70…”
in the open method. I checked but I didn’t find the error.
Does anybody has any sugestion???
Thank you very much.
khilin
PS: This is my code, I just changed the name of the variables to match the rest of my code. The pszFileName is correct, I checked it.
DAE kDae;
daeElement* kDaeRoot = kDae.open(pszFileName);
if (!kDaeRoot)
return false;
return true;