dispose [message #466122] |
Tue, 03 January 2006 10:21 |
Eclipse User |
|
|
|
Originally posted by: ingo.siebertNOSPAM.cas.de
Hi,
i read the two rules about dispose(), but i'm not quite sure if i
understand it.
I've read, everything i create i must dispose.
But one the other hand, if dispose of a super class is called all the
childs are disposed itself.
For example, i created three editor components(RCP). They a creating
some widgets like labels, tables, ...
Do i have to dispose the widgets in the dispose method of the editor?
It would be very nice if some can explain that to me.
Thanks,
Ingo
|
|
|
|
Re: dispose [message #466142 is a reply to message #466137] |
Tue, 03 January 2006 17:37 |
Eclipse User |
|
|
|
Originally posted by: ingo.siebertNOSPAM.cas.de
Thank you for your answer.
Good to hear that disposing isn't so much work as i thought before.
I doesn't quite understand why Font, Color and Image resources are only
in limited quantity available, especially Color, but i know now that i
should dispose that ones myself.
Thanks,
Ingo
|
|
|
Re: dispose [message #466148 is a reply to message #466142] |
Tue, 03 January 2006 20:23 |
Eclipse User |
|
|
|
Originally posted by: richkulp.us.NO_SPAM.ibm.com
This is because on most systems these are allocated down inside the
operating system and not directly within your code. Operating system
objects typically need to be explicitly disposed. Since the OS is
allocating them they are typically in limited quantities.
Ingo Siebert wrote:
> Thank you for your answer.
> Good to hear that disposing isn't so much work as i thought before.
>
> I doesn't quite understand why Font, Color and Image resources are only
> in limited quantity available, especially Color, but i know now that i
> should dispose that ones myself.
>
> Thanks,
>
> Ingo
--
Thanks,
Rich Kulp
|
|
|
Powered by
FUDForum. Page generated in 0.03654 seconds