Nick Glencross wrote:
> Hi!
> 
> I've been checking for memory leaks in my application by instantiating
> and disposing pretty large forms, and checking for Objects that leak.
> 
> A few of the standard Widgets seem to have some problems:
>
> Table:
> 
>   * The Table might be leaking many of its backend Widgets, such as
> the model, although I've been inspecting the code closely, and I can't
> see why as it seems to be trying to clean itself up properly
> 

I've been looking into the Table object a little deeper using this:

  alert(qx.dev.ObjectSummary.getInfo());

  var table_model = new qx.ui.table.model.Simple();

  table_model.setColumns([ 'Table',
                           'Columns']);

  var table = new qx.ui.table.Table(table_model);
  table.set ({width: 'auto', height: 150, statusBarVisible: false});

  var tablecolumnmodel = table.getTableColumnModel ();

  tablecolumnmodel.setColumnWidth (0, 50);
  tablecolumnmodel.setColumnWidth (1, 120);

  table_model.setData ([['1', '2'],
                        ['3', '4']]);

  table.dispose ();

  // This overview claims that there are still quite a few
  // qx.ui.table.* Objects existing
  alert(qx.dev.ObjectSummary.getInfo());



I realise that a few Objects may not get cleaned up, especially ones 
that can be shared, but the qx.ui.table.model.Simple looks somewhat odd, 
especially as the Table destruct method requests _tableModel to be 
disposed.(The qx.disposerDebugLevel setting doesn't appear to pick up up)

Looking a little deeper, it looks like the properties are internally 
prefixed by a user$, and specifying this explicitly seems to work, but 
isn't quite what is intended, I suspect.


Can anyone offer some advise on where the name mismatch is occurring?


Thanks in advance,

Nick

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to