Error: uncaught exception: [Exception... "Component returned failure code: 0x8007000e (NS_ERROR_OUT_OF_MEMORY) [nsIDOMNSHTMLDocument.write]" nsresult: "0x8007000e (NS_ERROR_OUT_OF_MEMORY)" location: "JS frame :: http://localhost/zophe/index.php?/products/bibliograph/modules/table/table?datasource=orgcrim&folderId=9&sql=keywords%20like%20'%european%20union%'&inPane=1&name=EU&wrapperObj=mainTable&width=&height=398px :: <TOP_LEVEL> :: line 206" data: no]

Has anybody experienced this before? The data set is not very large... The error occurs on the line where the ActiveWidgetsGrid object is written to the document.
Christian Boulanger
August 27,
I found the problem but not the solution:

I use a second widget framework (http://www.netwindows.org/) , so having two big libraries in memory is a problem.

by setting

grid.setProperty("data/text", function(i, j){return myData[i][j]});

one creates a closure that seems to consume a lot of memory.

If I assign data directly to the grid, without using a callback function, I avoid this. But I could not find out how to do this.

I would like to do something like

for(var i in myData)
for(var j in myData[i])

What would I have to replace for **setCellValue** ?

The design of ActiveWidgets seems so well thought out, but it is too complex for me to sort through the source code to find that out, since it seems to dynamically create its own methods.

Christian Boulanger
August 28,
I got the same error recently..

Check whether you supply the correct row count value using
the method


Otherwise, the code generating the closures seems to iterate until all memory is taken.
Oli Kessler
March 1,

This topic is archived.

See also:

Back to support forum