If I do a count of the children each time, it is the same (5, which at the
place I am checking this is the base amount for the window before adding
it's contents). I have not looked at physical memory, I assumed that was the
issue since it compounds itself on every iteration.
I can not re-use the children, I have no idea what set of children are going
to be in the tool, it is determined by the user at runtime. All I can do is
take the contents from the server and add them to the window when that
window gets used.
I have about 5 different types of windows, that is why I thought simply
removing the children then re-populating the window would work, but in IE it
doesn't work so well. FireFox works just fine.
In IE, if I clear the entire window before loading that tool window by
hitting F5, the window loads fast, So I am going to try completely disposing
the entire window each time to see if it does any better. Or perhaps I
should also try and set each child control to null in my disposeChildren
function. Perhaps IE would then remove them from memory. I just think IE is
very slow on garbage collection (there are about 100 or more controls in the
tool window each time it gets displayed and some of the controls are
grids/tables.
Thanks for the help,
Jim
On Wed, Jul 2, 2008 at 11:06 PM, Hugh Gibson <[EMAIL PROTECTED]> wrote:
> > I am running into a troubling situation and am looking for a little
> > help. My application re-uses 'tool windows' to display new
> > information. It does so by removing all children (using a function I
> > wrote to iterate through all children, destroy them (they iterate
> > their children before destroying themselves). Then it destroys
> > itself. Then I add the new contents to the tool window.
>
> Some questions - sorry if they are obvious:
>
> Have you confirmed that memory use is growing - i.e. that the children
> are being left around?
>
> Have you looked at re-using children instances?
>
> Do your tool windows come in just a few flavours - i.e. with standard
> sets of children? If so you could save removing the children from the
> tool windows and just re-use the tool windows.
>
> Hugh
>
> -------------------------------------------------------------------------
> Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
> Studies have shown that voting for your favorite open source project,
> along with a healthy diet, reduces your potential for chronic lameness
> and boredom. Vote Now at http://www.sourceforge.net/community/cca08
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
--
Jim Hunter
DAILY THOUGHT: SOME PEOPLE ARE LIKE SLINKIES - NOT REALLY GOOD
FOR ANYTHING BUT THEY BRING A SMILE TO YOUR FACE WHEN PUSHED DOWN THE STAIRS
-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel