Bugs item #413948, was updated on 2001-04-05 02:48
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105757&aid=413948&group_id=5757
Category: DynAPI 2 API
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Yurij Silvestrov (yura_silver)
Assigned to: Nobody/Anonymous (nobody)
Summary: Memory Leak in IE
Initial Comment:
since 2001.04.03 DynAPI have memory leak under IE 5 on
Windows 2000.
on example files:
dynapi.gui.buttonimage:
snapshot from 2001.04.02 - no leak.
snapshot from 2001.04.03 - leaks about 200 k on each
reload.
snapshot from 2001.04.04 - leaks about 200 k on each
reload.
dynapi.api.create:
snapshot from 2001.04.02 - no leak.
snapshot from 2001.04.04 - no leak.
dynapi.event.mouseevents:
snapshot from 2001.04.02 - no leak.
snapshot from 2001.04.04 - leaks about 200 k on each
reload.
May be, bug in eventlisteners?
----------------------------------------------------------------------
Comment By: Asis Garcia Chao (asis)
Date: 2001-05-08 15:16
Message:
Logged In: YES
user_id=180949
We have been developping a web site, using DynAPI 2.51.
We use in our project the DynLabel and we extend the
DynLayer and build our own widgets.
We are in a hurry. Please, if don't any solution, send us a
suggestion about it.
Thanks in advantage.
----------------------------------------------------------------------
Comment By: Robert Rainwater (rainwater)
Date: 2001-04-09 08:48
Message:
Logged In: YES
user_id=16618
deleteAllChidren is already done on the windows unload
event internally in the DynAPI (so is
removeAllEventListeners). So manually deleting them is not
necessary.
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Date: 2001-04-09 04:00
Message:
Logged In: NO
i made the experience that neither deleteAllChildren() nor
deleteAllEventListeners() work. at least this little
function i made worked for me:
<!-- Begin
DynAPI.onUnload = function () {
<!-- count layers in document -->
documentLayers = DynAPI.document.children.length;
<!-- delete all layers in document -->
for (i = 1; i <= documentLayers; i++) {
DynAPI.deleteChild(i);
}
}
//-->
in case you�re using eventListeners, you should also delete
them, just change the script above. vars containing huge
strings should be set to null, too.
----------------------------------------------------------------------
Comment By: Robert Rainwater (rainwater)
Date: 2001-04-06 19:23
Message:
Logged In: YES
user_id=16618
removeAllEventListeners has to be called after the del or
else you will not be able to capture the ondelete and
onremove events. These are essential.
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Date: 2001-04-05 06:06
Message:
Logged In: NO
Could be related to the fix made by Robert Rainwater:
quote:
"removeAllEventListeners has been fixed so that it is
called after
del(). Also, fixed it so that it doesnt set the events to
null."
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105757&aid=413948&group_id=5757
_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-dev