To dispose or not to dispose [message #447987] |
Wed, 22 December 2004 10:41  |
Eclipse User |
|
|
|
<br><font size=1 face="sans-serif">I have a scrolled composite and have done a setinput with a composite to scroll. When a certain selection event happens I create a new composite and set the input of the scrolled composite to that.</font>
<br>
<br><font size=1 face="sans-serif">Question is eclipse says that widgets created with a parent are disposed by the system when the parent is disposed. In my case the parent scrolled composite is not disposed and there could be a lot of selection events (circa 200) with say 20 widgets on each composite, does this mean there will be 4000 widgets hanging around until the scrolled composite is disposed.</font>
<br>
<br><font size=1 face="sans-serif">Will the scrolled composite dispose of the old input when a new setinput is done, is it safe for me to dispose of them or do I just leave them all hanging around until the scrolled composite is disposed when the view closes.</font>
<br>
<br>
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04262 seconds