[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [platform-swt-dev] Use weak references to manage system resources?
|
OK, I have done some prototyping and discovered that weak references don't work exactly the way I thought they did. :-) So I think I will need to give this a bit more thought. If I come up with anything that seems useful, I'll post it back to the list.
Thanks,
Greg
On Jan 1, 2011, at 11:15 AM, Greg Brown wrote:
> Hi all,
>
> I'm working on a control that will do a lot of custom painting, and I'm trying to come up with a strategy for managing system resources such as fonts and colors that may be shared by multiple, unrelated classes. From this article, I understand that the recommended practice is to use a reference counting scheme:
>
> http://www.eclipse.org/articles/swt-design-2/swt-design-2.html
>
> It seems like weak references might work well here - any thoughts? I searched for previous discussions on this topic but didn't find anything - any insight would be very much appreciated.
>
> Thanks,
> Greg
>
>
> _______________________________________________
> platform-swt-dev mailing list
> platform-swt-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/platform-swt-dev