Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

C++ HALP

Name: Seven 2007-05-11 23:39 ID:Yp9UrS/m

Okey, im a memory noob when it comes to C++, i dunt really understand pointers and shallow-deep copy shit, and its causing me a problem.

Pointer to an image object, is passed to a class which makes some changes and uses it every step/frame. Works fine when theres only one instance of the object, but when i try to create another, my game crashes! Is passing a pointer to multiple instances bad??

Name: Anonymous 2007-05-11 23:46 ID:zts986Uq

It is if one of them destroys the object and the other tries to use free()'d memory.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List