-
FEATURED COMPONENTS
First time here? Check out the FAQ!
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.
<window>
<button label="open fck" onClick="openFCK()"/>
<zscript>
win = Executions.createComponents(fck.zul", null, null);
win.doModal();
</zscript>
</window>
where "fck.zul" is:
<window title="FCK window" border="normal" closable="true">
<fckeditor/>
</window>
After tweaking the above:
<window>
<button label="open fck" onClick="openFCK()"/>
<zscript>
void openFCK() {
win = Executions.createComponents("fck.zul", null, null);
win.doModal();
}
</zscript>
</window>
I can confirm the symptom: repeated open and close of editor causes memory usage to repeatedly go up.
FireFox 3 on Mac OSX.
/Daryl
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?
@aros54,
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.
Asked: 2008-08-21 21:52:06 +0800
Seen: 442 times
Last updated: Jul 08 '10