Hello,
I am working through a book about character animation with direct3d
There is a CD-ROM that came with the book and the examples on the cd will compile and run ok in debug mode but when I compile a release build, I get a runtime error to do with a vector:
iterator insert(const_iterator _Where, const _Ty& _Val)
{ size_type _Off = size() == 0 ? 0 : _Where - begin();
_Insert_n(_Where, (size_type)1, _Val);
return (begin() + _Off);
}
Any idea how I can compile and run in release mode?
I'm thinking that I need to link in some library to get it to work but as I say it compiles fine with the current d3d9.lib and d3dx9.lib.
------------------------
Ok, I tried a unicode build instead and I get an access violation with the wofstream
can you help me get to the bottom of what's going on?
I've upgraded to visual c++ professional and still getting a problem with vector push_back. Here's the code that's playing up:
for(int i=0; i<(int)NumMaterials; i++)
{
D3DXMATERIAL mtrl;
memcpy(&mtrl, &pMaterials[i], sizeof(D3DXMATERIAL));
boneMesh->materials.push_back(mtrl.MatD3D)
The problem is with materials.push_back
seems like i'm passing a bad value