Ákos Maróy
unread,Feb 14, 2013, 12:46:41 PM2/14/13Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to jai-...@googlegroups.com
Hi,
I'm running a code which creates a log of DiskMemImage objects, and I've
found that each new object creates and leaves a daemon thread running,
even after it is disposed. I looked at the code, and it seems
DiskMemImage.createGraphics() will create a new a new cache with
createNewCache(), which creates a new thread in its constructor via
startTilePolling().
but this thread is never stopped and gotten rid of.
it's not stopped in the dispose() call to the Graphics2D object
returned. it is also not stopped & destroyed in the dispose() call of
DiskMemImage itself. actually, it seems the function that is supposed to
destroy this thread, DiskMemTileCache.stopTilePolling(), is only called
by setTilePollingInterval(), where a new thread is created immediately -
but it is never called to actually destory this thread for good.
I wonder if anyone else has encountered this issue.
best regards,
Akos