[Dojo-interest] Memory leaks in Javascript-created widgetsandevent handlers?

Martin Kou bitanarch at gmail.com
Wed Jan 3 02:39:09 MST 2007


Here's a lower resolution video I uploaded to YouTube, in case you can't 
connect to my web server (which is located in Asia)

http://www.youtube.com/watch?v=DVcUidSRoLQ

Best Regards,
Martin Kou

----- Original Message ----- 
From: "Jayaram" <jkrishnaswamy at comcast.net>
To: <dojo-interest at dojotoolkit.org>
Sent: Wednesday, January 03, 2007 4:21 AM
Subject: Re: [Dojo-interest] Memory leaks in Javascript-created 
widgetsandevent handlers?


>I used your code to test your complaint, but I did not observe anything 
>unusual.  Could you quantify waht you are saying? Your create and estroy 
>worked without any problem.  The  destroy destoyed items created repeatedly 
>all at once. I am intereseted in knowing waht yous aw in the Windows Task 
>Manager window. The event handlers also worked for each of the Hello 
>World!.
>
> Jayaram
> ----- Original Message ----- 
> From: "Martin Kou" <bitanarch at gmail.com>
> To: <dojo-interest at dojotoolkit.org>
> Sent: Sunday, December 31, 2006 4:56 AM
> Subject: [Dojo-interest] Memory leaks in Javascript-created widgets 
> andevent handlers?
>
>
>> Hi,
>>
>> I'm new to Dojo Toolkit - I've just started learning it last week. I 
>> started
>> learning it by writing some simple, proof-of-concept dynamic pages (where
>> widgets can be created and destoryed without being refreshed - I haven't
>> touched on the ajax stuff yet). I think I've done something wrong, and 
>> I've
>> tried things like dojo.event.browser.clean() that popped up in this 
>> mailing
>> list and Alex's December 2005 blog entries for similar problems, but to 
>> no
>> avail.
>>
>> First page I constructed with Dojo:
>> http://hkpcug.homeftp.net/~francium/dojo-0.4.1-ajax/dojo_leak_dom.html
>>
>> Second page I constructed with Dojo:
>> http://hkpcug.homeftp.net/~francium/dojo-0.4.1-ajax/dojo_leak_widget.html
>>
>> Notice that the links might be very slow or even unreachable, because my
>> server is located in Hong Kong, and the international links from here are
>> damaged right now due to last week's earthquake in Taiwan. For this 
>> reason,
>> I've attached the .html file to my post as well.
>>
>> In both examples, clicking "Creating xxx widgets" and then "Destroy All"
>> repeatedly in IE6 or IE7 would lead to the vmsizes of both browsers (as
>> observed from Window's Task Manager) increase rapidly. How can I correct
>> this problem? And could anyone kindly point to the reason why is it
>> happening?
>>
>> Best Regards,
>> Martin Kou
>>
>
>
> --------------------------------------------------------------------------------
>
>
>> _______________________________________________
>> Dojo FAQ: http://dojo.jot.com/FAQ
>> Dojo Book: http://manual.dojotoolkit.org/DojoDotBook
>> Dojo-interest at dojotoolkit.org
>> http://dojotoolkit.org/mailman/listinfo/dojo-interest
>>
>
>
> --------------------------------------------------------------------------------
>
>
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.409 / Virus Database: 268.16.1/611 - Release Date: 12/31/2006
>
> _______________________________________________
> Dojo FAQ: http://dojo.jot.com/FAQ
> Dojo Book: http://manual.dojotoolkit.org/DojoDotBook
> Dojo-interest at dojotoolkit.org
> http://dojotoolkit.org/mailman/listinfo/dojo-interest 



More information about the Dojo-interest mailing list