I just tried getting my scene graph working, but I'm getting a strange error involving my use of either the std::vector or std::map structures. Here's the error:
Run-Time Check Failure #2 - Stack around the variable '_Lk' was corrupted.
I haven't a clue where to start to fix this. I know approximately where it happens. It happens during a constructor for one of my classes. Weird thing is that there is nothing in the constructor. I don't understand it. However, the class does contain seven std::map structures so that could be it, though I'm not sure why it'd crash like this. Any ideas?
Edit:
I've narrowed it down. I get this error seven times, once per std::map object. Here's what my maps look like:
map<D3DXHANDLE, bool> boolList;
map<D3DXHANDLE, float> floatList;
map<D3DXHANDLE, int> intList;
map<D3DXHANDLE, D3DXMATRIX> matrixList;
map<D3DXHANDLE, LPCSTR> stringList;
map<D3DXHANDLE, IDirect3DTexture9*> textureList;
map<D3DXHANDLE, D3DXVECTOR4> vectorList;
Any ideas what's causing the problem? It happens when the std::maps are in their constructor.