On Wed, May 5, 2010 at 14:09, Nick Watkins <[email protected]> wrote:

>
> I think I figured it out. I traced back through the call stack when it goes
> to render the widgets and found that the table's parent had both the old
> and
> new tables as children. One of the tables was the correct one and the other
> was the one I disposed. I changed my reloadTable method to the following
> and
> it worked:
> reloadTable : function() {
>        // clear the table model's row cache
>        this.__table.getTableModel().clearCache();
>         this.remove(this.__table);
>
>        // delete the existing table/model
>         this._disposeObjects("__tableModel", "__table");
>
>        // create table and model from scratch
>        this.__tableModel = new controlcenter.Model.List.TableModel();
>        this.__tableModel.addListener("metaDataLoaded", this.__createTable,
> this);
> },
>
>
> I'm not sure of the differences between 1.0.1 and 1.1, but I know that I
> wasn't getting errors in 1.0.1. It seems I just need to remove a widget
> from
> a layout prior to calling disposeObjects on it.
>

Just a couple of weeks ago, there was a bunch of work done on optimizing
shutdown of applications. I believe there was work done with disposing,
possibly to the disposeObjects() method. It's possible that it used to
automatically remove the widget for you, and no longer does so.

Derrell
------------------------------------------------------------------------------
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to