On 19/08/2011 15:45, Christopher Schultz wrote:
> Dan,
> 
> On 8/18/2011 5:22 PM, Dan Armbrust wrote:
>> Toolkit.getDefaultToolkit().createImage(new byte[]{});
> 
> Simply calling getDefaultToolkit will do the trick: you don't have to
> waste time creating an image.
> 
> I'll implement this in the JreLeakPreventionListener, but it will be
> /disabled/ by default because it creates an extra thread.


For this type of problem would it be useful to intercept the call to
load the class & then trigger the protection 'on demand'?

It might be a bit of a stretch to make it happen safely, admittedly.


p

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to