Status: Accepted

New issue 206 by SWTGraphics2D keeps invalid caches

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:  2.2 KB
        clear_caches.patch  1021 bytes

Piccolo2D Developers Group:

Reply via email to