About Store Forum Documentation Contact



Post Reply 
When to delete a...
Author Message
JonathonA Offline
Member

Post: #1
When to delete a...
Apologies if these questions have been answered somewhere else; I did start looking but difficult sometimes to find what you need on the forum.

1. Should del() be called on all memory containers prior to application shut down?

2. When is it appropriate to call del()?

Jon
04-01-2012 01:14 AM
Visit this user's website Find all posts by this user Quote this message in a reply
fatcoder Offline
Member

Post: #2
RE: When to delete a...
I've actually been recently wondering the same thing. I never call del() and don't have any memory leaks, so I'm guessing EE is doing some internal memory managment. Would be good to know though.
04-01-2012 02:27 AM
Find all posts by this user Quote this message in a reply
JonathonA Offline
Member

Post: #3
RE: When to delete a...
(04-01-2012 02:27 AM)fatcoder Wrote:  I've actually been recently wondering the same thing. I never call del() and don't have any memory leaks, so I'm guessing EE is doing some internal memory managment. Would be good to know though.

Yeah thats what I thought too smile
04-01-2012 09:48 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Esenthel Online
Administrator

Post: #4
RE: When to delete a...
@fatcoder I think I did reply in your previous question topic that if you look at destructors of classes you will find that 'del' is called inside there, so you don't need to call it manually
just look at the destructors
04-02-2012 01:41 AM
Find all posts by this user Quote this message in a reply
JonathonA Offline
Member

Post: #5
RE: When to delete a...
Had a vague feeling this had been discussed somewhere before, apologies for double posting. Thanks Esenthel.
04-02-2012 09:19 AM
Visit this user's website Find all posts by this user Quote this message in a reply
fatcoder Offline
Member

Post: #6
RE: When to delete a...
Yeah, I just realised that we had a similar discussion ealier. However we didn't talk about memory containers then, so that's what threw me here.
04-03-2012 12:46 AM
Find all posts by this user Quote this message in a reply
Post Reply