Can't add object to std::vector

Started by
20 comments, last by Eriond 20 years ago
Are you trying to call GetDevice through a NULL pointer? It looks that way from the error you''re getting.

Hint: when it crashes, go into the debugger and look at the Variables window. Check the value of ''this''.
Advertisement
I got it to work now. I fixed the copy ctor and assignment operator of Cube, and moved some code from another ctor to a new function.

This topic is closed to new replies.

Advertisement