memory leak?

asked 2008-08-21 21:52:06 +0800

siamakh gravatar image siamakh

I am running into a memory leak on the client side. Please try the below script. Click on the "open fck" button and notice that the memory used by the internet browser grows more and more each time you close the modal window and open it again. I suspect this is due to the fact that fckeditor is loading javascript on the client which is not released.

<button label="open fck" onClick="openFCK()"/>
win = Executions.createComponents(fck.zul", null, null);

where "fck.zul" is:

<window title="FCK window" border="normal" closable="true">

delete flag offensive retag edit

4 Replies

Sort by ยป oldest newest

answered 2008-08-22 13:12:40 +0800

dastultz gravatar image dastultz
797 9

After tweaking the above:

<button label="open fck" onClick="openFCK()"/>
void openFCK() {
win = Executions.createComponents("fck.zul", null, null);

I can confirm the symptom: repeated open and close of editor causes memory usage to repeatedly go up.
FireFox 3 on Mac OSX.


link publish delete flag offensive edit

answered 2008-08-22 14:19:50 +0800

siamakh gravatar image siamakh

Thanks for fixing my example. I submitted a bug: http://sourceforge.net/tracker/index.php?func=detail&aid=2067578&group_id=152762&atid=785191

link publish delete flag offensive edit

answered 2010-07-01 08:44:53 +0800

aros54 gravatar image aros54

I am having a similar trouble while opening modal a window containing a fckeditor. I am using a createComponent() to create the winodw and detach() it on window closing. At the second invocation the IExplorer crashes.
Any hint?

link publish delete flag offensive edit

answered 2010-07-08 21:12:21 +0800

henrichen gravatar image henrichen
3869 2
ZK Team


Please post it to ZK Bug with a SIMPLE RUNABLE example codes that will replicate the issue. And the environment(ZK version, browser version, java version, server version) and STEPs to replicate this issue. Thanks.

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools




Asked: 2008-08-21 21:52:06 +0800

Seen: 442 times

Last updated: Jul 08 '10

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More