Sign in to follow this  

Memory Management Question

This topic is 4730 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

So in the Enginuity articles, do you create a memory managed object via the memory manager. So: a) Look memory manager i would like a memory managed object of type ClassA. b) The memory manager would then create the object on the heap, the object would be pointed to by a smart pointer. c) it would then add the smartpointer to its internal list of live objects? Am i right? Other questions. 1) when it says you would run through the list of liveobject to see if the object is being used. If the object isnt being used would this be marked by a simple bool variable within the object. So if this were true you could have every object that would be on the heap derive from a base object with this variable. 2) An instance of when an object wouldn't be being used would be kinda if something on a map was destroyed, therefore invisible, or like when there is a level change or something. 3) In order for the memory manager to be able to store 1 list containing smartpointers to different types of objects, would this be done with a polymorphic collection? ace

Share this post


Link to post
Share on other sites

This topic is 4730 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this