when to dispose of widgets/objects [message #444276] |
Mon, 11 October 2004 07:51 |
Eclipse User |
|
|
|
Originally posted by: spam.scientifik.com
From what I've read, I'll have to dispose of SWT widgets manually as they
are calls to native resources.
When should I dispose of widgets and are there other resources I need to
be disposing of manually?
|
|
|
|
|
|
Re: when to dispose of widgets/objects [message #444358 is a reply to message #444283] |
Tue, 12 October 2004 01:18 |
Eclipse User |
|
|
|
Originally posted by: spam.scientifik.com
Great, thank you!
Grant Slender wrote:
> Widget attached to a parent widget (like a composite/shell) will dispose its
> children when it is disposed.
> So when you dispose the shell, all widgets contained in it will be
> disposed - so you don't have to dispose anything.
> You only need to dispose of resource you create yourself, like Fonts and
> such.
> Grant
> "V. Jenks" <spam@scientifik.com> wrote in message
> news:ckde2l$6f6$1@eclipse.org...
> > From what I've read, I'll have to dispose of SWT widgets manually as they
> > are calls to native resources.
> >
> > When should I dispose of widgets and are there other resources I need to
> > be disposing of manually?
> >
|
|
|
|
Powered by
FUDForum. Page generated in 0.03279 seconds