[ 3 posts ]

pmaks

  • Username: pmaks
  • Joined: Fri Jun 05, 2009 2:09 am
  • Posts: 9
  • Offline
  • Profile

Drag drop leaks memory

Post Posted: Thu Sep 17, 2009 8:40 pm
+0-
Hi All,
I've customized a drag drop example, in which I create around 200 new dragdrop objects on a button click, and destroy previous drag drop objects if exists. But memory foot print of Firefox 3.5.3 keeps on increasing with each button click. Problem is visible with large number objects
I used dragdrop.unreg() to delete dragdrop elements. Is it fine or I'm missing something. This becomes critical in our application, we need to create new objects frequently, we just need to get rid of previous objects properly so that it doesn't leak memory.
I'm attaching sample code with this query.

Please provide your views.
Thanks
pmaks

Code:

http://gist.github.com/188878


Last edited by davglass on Thu Sep 17, 2009 8:42 pm, edited 1 time in total.
Code editing

Dav Glass

  • Username: davglass
  • Joined: Thu Aug 28, 2008 9:28 am
  • Posts: 2088
  • Location: Marion, IL, US
  • Twitter: davglass
  • GitHub: davglass
  • Gists: davglass
  • IRC: davglass
  • Offline
  • Profile
Tags:

Re: Drag drop leaks memory

Post Posted: Thu Sep 17, 2009 8:42 pm
+0-
Please don't post large chunks of code to the forum, it's messy to read and clutters up the site.

Use a pastie service next time.

Dav Glass

  • Username: davglass
  • Joined: Thu Aug 28, 2008 9:28 am
  • Posts: 2088
  • Location: Marion, IL, US
  • Twitter: davglass
  • GitHub: davglass
  • Gists: davglass
  • IRC: davglass
  • Offline
  • Profile

Re: Drag drop leaks memory

Post Posted: Thu Sep 17, 2009 10:11 pm
+0-
I commented on your ticket, please carry the conversation there:

#2528478
  [ 3 posts ]
Display posts from previous:  Sort by  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum