Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsMemory leak - unable to dispose of PaletteEntry images
https://www.eclipse.org/forums/index.php/mv/msg/73199/228821/#msg_228821
Originally posted by: kevin.21csi.com
I'm using the PaletteEntry icons in an unorthodox way and
wondering how I can get a reference to the ImageCache or clear the cache
in the edit part so I can prevent a memory leak. I use the small/large
icon as a canvas and I'm continuously setting the image descriptors of
both. The image descriptors are usually different causing a new image to
be cached each time.
Is there any plans to adopt the new JFace image cache style as suggested
in the following reply in the mailing list:
"The Palette's use of a static image cache was borrowed from
ActionContributionItem in JFace. JFace has since fixed this and uses a
global reference counting solution. There should be a bug open to clean
this up but if you can't find one open another.
-Randy"
Thanks,
Kevin]]>2007-01-10T15:55:22-00:00Re: Memory leak - unable to dispose of PaletteEntry images
https://www.eclipse.org/forums/index.php/mv/msg/73199/228844/#msg_228844
Were you able to fix a Bugzilla reference?
Cheers...
Anthony
"Kevin Shallenberger" <kevin@21csi.com> wrote in message
news:eo329a$6jr$1@utils.eclipse.org...
> I'm using the PaletteEntry icons in an unorthodox way and
> wondering how I can get a reference to the ImageCache or clear the cache
> in the edit part so I can prevent a memory leak. I use the small/large
> icon as a canvas and I'm continuously setting the image descriptors of
> both. The image descriptors are usually different causing a new image to
> be cached each time.
>
> Is there any plans to adopt the new JFace image cache style as suggested
> in the following reply in the mailing list:
>
> "The Palette's use of a static image cache was borrowed from
> ActionContributionItem in JFace. JFace has since fixed this and uses a
> global reference counting solution. There should be a bug open to clean
> this up but if you can't find one open another.
>
> -Randy"
>
>
> Thanks,
> Kevin]]>Anthony Hunter2007-01-10T16:39:55-00:00Re: Memory leak - unable to dispose of PaletteEntry images
https://www.eclipse.org/forums/index.php/mv/msg/73199/228852/#msg_228852
Originally posted by: kevin.21csi.com
Anthony Hunter wrote:
> Hi Kevin,
>
> Were you able to fix a Bugzilla reference?
>
> Cheers...
> Anthony
>
> "Kevin Shallenberger" <kevin@21csi.com> wrote in message
> news:eo329a$6jr$1@utils.eclipse.org...
>> I'm using the PaletteEntry icons in an unorthodox way and
>> wondering how I can get a reference to the ImageCache or clear the cache
>> in the edit part so I can prevent a memory leak. I use the small/large
>> icon as a canvas and I'm continuously setting the image descriptors of
>> both. The image descriptors are usually different causing a new image to
>> be cached each time.
>>
>> Is there any plans to adopt the new JFace image cache style as suggested
>> in the following reply in the mailing list:
>>
>> "The Palette's use of a static image cache was borrowed from
>> ActionContributionItem in JFace. JFace has since fixed this and uses a
>> global reference counting solution. There should be a bug open to clean
>> this up but if you can't find one open another.
>>
>> -Randy"
>>
>>
>> Thanks,
>> Kevin
>
>]]>2007-01-10T16:50:00-00:00