Sign in to follow this  

Memory Deletion

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

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