Jump to content
  • Advertisement
Sign in to follow this  
dave

Memory Deletion

This topic is 5052 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

Ok, is it bad that i never create classes using the 'new' keyword. It seems the only thing i need to worry about deleting at the moment are Linked Lists. Any comments? ace

Share this post


Link to post
Share on other sites
Advertisement
If you haven't already run across a need for dynamic memory allocation with your classes, then I don't suppose there's anything wrong with it. Unless you have an ungodly amount of globals. In that case, I would advise reorganizing things, which may involve dynamic allocation and passing pointers around instead of just accessing globals. But you if you do use globals right now, you might still be able to manage getting rid of the globals without using dynamic memory allocation and pointers, and instead pass references around.

Share this post


Link to post
Share on other sites
the way my engien is working is that i have a central class that creates objects and passes pointers of objects tot he other objects that need them,

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!