[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform.swt] Re: swt Color and dispose?
|
Chris,
This article doesn't really address the extent to which a Color is a
resource.
If I wrote a whlie loop that newed an infinite amount of colors and allowed
them to be garbage collected, what is the resource that is being leaked?
From what I know, either a) there is no resource (high-color/true-color
displays) or b) there are 256 "resources", which get reference counted, but
the set doesn't grow any larger than 256. In either case, I don't anything
leaking.
Therefore, the only reason to dispose a color other than to possibly free up
a slot in a 256-color palette. Right?
"Christophe Cornu" <christophe_cornu@xxxxxxxxxx> wrote in message
news:beucjd$tk1$1@xxxxxxxxxxxxxx
> Hi David,
>
> This article deals with the SWT color model, X, Windows, direct and
> palette mode etc.
> http://www.eclipse.org/articles/SWT%20Color%20Model/swt-color-model.htm
>
> Chris
>
>
>