Re: [OT] Re: How to handle the AWT-Windows thread?

2011-08-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pid, On 8/21/2011 4:53 AM, Pid wrote: On 21/08/2011 01:19, Christopher Schultz wrote: I'm not sure how one would intercept the call, though. I've never looked into it, but I would guess that Toolkit.getDefaultToolkit can be configured to return

Re: [OT] Re: How to handle the AWT-Windows thread?

2011-08-21 Thread Pid
On 21/08/2011 01:19, Christopher Schultz wrote: Pid, On 8/20/2011 6:06 PM, Pid wrote: 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:

[OT] Re: How to handle the AWT-Windows thread?

2011-08-20 Thread Pid
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

Re: [OT] Re: How to handle the AWT-Windows thread?

2011-08-20 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pid, On 8/20/2011 6:06 PM, Pid wrote: 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:

Re: How to handle the AWT-Windows thread?

2011-08-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pid, On 8/18/2011 6:05 PM, Pid wrote: On 18/08/2011 22:22, Dan Armbrust wrote: Toolkit.getDefaultToolkit().createImage(new byte[]{}); which avoids Headless issues, but still kicks off the AWT-Windows thread. And since it is no longer tied to

Re: How to handle the AWT-Windows thread?

2011-08-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 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

Re: How to handle the AWT-Windows thread?

2011-08-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dan and Pid, On 8/18/2011 6:05 PM, Pid wrote: On 18/08/2011 22:22, Dan Armbrust wrote: Toolkit.getDefaultToolkit().createImage(new byte[]{}); which avoids Headless issues, but still kicks off the AWT-Windows thread. Doesn't the leak

How to handle the AWT-Windows thread?

2011-08-18 Thread Dan Armbrust
So, yesterday, I finally start working on upgrading on old application set to a current 6 release of Tomcat. (Sigh, behind the truck already, seeing the announcement of the next version today bad timing by me... beside the point) Some of my web applications are using JFreeChart to generate

Re: How to handle the AWT-Windows thread?

2011-08-18 Thread Mark Thomas
On 18/08/2011 19:03, Dan Armbrust wrote: So, yesterday, I finally start working on upgrading on old application set to a current 6 release of Tomcat. (Sigh, behind the truck already, seeing the announcement of the next version today bad timing by me... beside the point) Some of my web

Re: How to handle the AWT-Windows thread?

2011-08-18 Thread Dan Armbrust
(If I can't figure out how to fix all my issues)  I can't ship code to the customers that logs SEVERE errors on shutdown. All the leaks should be fixable / possible to workaround. Mark If I could update all of my dependencies... I'm guessing many would just go away. Unfortunately, I'm

Re: How to handle the AWT-Windows thread?

2011-08-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dan, On 8/18/2011 2:38 PM, Dan Armbrust wrote: On the plus side, since they never actually remove anything they deprecate... maybe I can just stop the thread. Hmm. The JVM should not launch more than one AWT thread, so you should be okay. The

Re: How to handle the AWT-Windows thread?

2011-08-18 Thread Dan Armbrust
On Thu, Aug 18, 2011 at 2:13 PM, Christopher Schultz ch...@christopherschultz.net wrote: The JVM should not launch more than one AWT thread, so you should be okay. The only issue would be whether or not it inherits the webapp's context ClassLoader which would really represent a memory leak if

Re: How to handle the AWT-Windows thread?

2011-08-18 Thread Pid
On 18/08/2011 22:22, Dan Armbrust wrote: On Thu, Aug 18, 2011 at 2:13 PM, Christopher Schultz ch...@christopherschultz.net wrote: The JVM should not launch more than one AWT thread, so you should be okay. The only issue would be whether or not it inherits the webapp's context ClassLoader