Hi again,

Thanks for the advice -- I tried both of your suggestions.  Moving the dispose() call into a qx.ui.window.Window._afterDisappear() method and adding a qx.constant.Event.DISAPPEAR listener to the window.  Unfortunately both methods still results in the same error messages when dispose is called.

Does anyone have any other suggestions?

Thanks,

Simon

p.s.  While I was looking at this I also noticed that Window.dispose() does not appear to remove all of the event listeners that its constructor adds.  I tried adding the following code to Window.dispose() which seemed to help free some (but not all) of the memory used by a window:

  this.removeEventListener(qx.constant.Event.MOUSEDOWN, this._onwindowmousedown, this);
  this.removeEventListener(qx.constant.Event.MOUSEUP, this._onwindowmouseup, this);
  this.removeEventListener(qx.constant.Event.MOUSEMOVE, this._onwindowmousemove, this);
  this.removeEventListener(qx.constant.Event.CLICK, this._onwindowclick, this);



Sebastian Werner <[EMAIL PROTECTED]> wrote:
The button appearance will be resetted with the mouseup event. I think
you should be able to solve the issue using the "disappear" or
"afterDisappear" event instead of directly handling this in the function.

Cheers,

Sebastian


Simon Bull schrieb:
> Hi All,
>
> I'm using Qx 0.6.2-pre (r4314).
>
> I am trying to dispose() of "closed" qx.ui.window.Window instances so
> that I can minimise the browser's memory usage.
>
> I invoke dispose() at the end of qx.ui.window.Window._onclosebuttonclick().
>
> With this change, clicking the close button hide()s the window as usual,
> but does not seem to be cleanly disposed (no memory appears to be
> freed). The following message appear on the logging console:
>
> qx.ui.form.Button[227]
> 007063: Could not dispatch event of type "mouseup": TypeError -
> 'this._states' is null or not an object (#-2146823281)
> qx.theme.appearance.DefaultAppearanceTheme[7]
> 007063: Couldn't apply state appearance: TypeError - 'abandoned' is null
> or not an object (#-2146823281)
> 007063: Couldn't apply state appearance: TypeError - 'pressed' is null
> or not an object (#-2146823281)
> 007063: Couldn't apply state appearance: TypeError - 'maximized' is null
> or not an object (#-2146823281)
> 007063: Couldn't apply state appearance: TypeError - 'active' is null or
> not an object (#-2146823281)
>
>
> Does anyone know why these errors occur? Is there a clean way to
> dispose of qx.ui.window.Window instances?
>
> Thanks,
>
> Simon
>
> ------------------------------------------------------------------------
> On Yahoo!7
> Caller tones: Replace your ring tone with your favourite sound clip!
>
>
>
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> qooxdoo-devel mailing list
> qooxdoo-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel


On Yahoo!7
Men's Health: What music do you want to hear on Men's Health Radio?
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to