Status: Accepted
Owner: akurta...@gmail.com

New issue 206 by akurta...@gmail.com: SWTGraphics2D keeps invalid caches
http://code.google.com/p/piccolo2d/issues/detail?id=206

In SWTGraphics2D.decrementGCCount() if there are no more references all resources in the caches are disposed but they are keeped in them. This is a real problem because next time one request e.g. some Font(that has been used already) it will be found in the FONT_CACHE and returned but every node that tries to use if will make swt fail badly due to trying to use disposed font.
The attached test case shows the problem.
The other attachment is a patch that fixes the problem/makes the test case patch. The problem has been found while porting pydev to use latest released piccolo2d (1.3) so it will really help if an updated stable version can be issued (1.3.1?).

Attachments:
        SWTGraphics2DTest.java  2.2 KB
        clear_caches.patch  1021 bytes

--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en

Reply via email to