JavaScript and Memory Leak

S

Siah

Hi,

I was wondering how good is JavaScript with memory management. I have
an object called MANAGER that has a list of other objects, each one
managing a single DOM nodes, etc. In my implementation of
MANAGER.reset(), I simply recreate my MANAGER.object_list = new
object(); and do a single MANAGER.domnode.innerHTML = ''; as apposed to
getting my hands dirty. Is my app leaking memory?

Thanks,
Sia
 
R

Roman

Siah said:
Hi,

I was wondering how good is JavaScript with memory management. I have
an object called MANAGER that has a list of other objects, each one
managing a single DOM nodes, etc. In my implementation of
MANAGER.reset(), I simply recreate my MANAGER.object_list = new
object(); and do a single MANAGER.domnode.innerHTML = ''; as apposed to
getting my hands dirty. Is my app leaking memory?

Thanks,
Sia

It should not. Read Douglas' artice on memory leaks to get more insight

http://www.crockford.com/

Roman
 
S

Siah

Thanks Roman,
It was helpful. Based on the article, I think my app IS leaking memory.
I'll read it again though.

Thanks,
Sia
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,566
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top