JonathonA
Member
|
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 |
|
fatcoder
Member
|
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 |
|
Esenthel
Administrator
|
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 |
|
JonathonA
Member
|
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 |
|
fatcoder
Member
|
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 |
|