My Gannt Chart Appl crashes with "No more handles" [message #599445] |
Tue, 13 April 2010 19:13 |
Oberle Messages: 2 Registered: April 2010 |
Junior Member |
|
|
I'm using the nebual Gantt Chart Package.
I've written a small aplication with one GantChart and added some 50 Events. With Colors and Fonts set.
Like this...
ge = new GanttEvent(_ganttChart, gE.getName(), gE.getCpDate());
ge.setHorizontalTextLocation(gE.getHorizontalTextLocation()) ;
ge.setVerticalTextLocation(gE.getVerticalTextLocation());
ge.setStatusColor(gE.getStatusColor());
ge.setTextFont(textFont);
ge.setTextColor(textColor);
All gets displayed nicely. After the initial open of the display, no more events (and no colors and fonts) are created by my appl.
However, after some simple horizontal and vertical scrolling, all of a sudden my appl crashes with "No more handles exception".
Checking with the Windows Task Manager, it is true, that my appl = java.exe need thousands of handles=GDI Objects.
Further investigation wit the Sleak tools show me, that there are thousands of Fonts used in my appl.
So something within the Gantt class allocates Fonts, but does not free them.
Any ideas of fixes?
|
|
|
Re: My Gannt Chart Appl crashes with "No more handles" [message #599465 is a reply to message #599445] |
Wed, 14 April 2010 08:48 |
Thomas Schindl Messages: 6651 Registered: July 2009 |
Senior Member |
|
|
Hi,
Can you provide us a reproducable case so that we can track the problem
down. Probably you can modify one of our snippets to reproduce the problem.
Tom
Am 13.04.10 21:13, schrieb Oberle:
> I'm using the nebual Gantt Chart Package.
> I've written a small aplication with one GantChart and added some 50
> Events. With Colors and Fonts set.
> Like this...
> ge = new GanttEvent(_ganttChart, gE.getName(), gE.getCpDate());
> ge.setHorizontalTextLocation(gE.getHorizontalTextLocation()) ;
> ge.setVerticalTextLocation(gE.getVerticalTextLocation());
> ge.setStatusColor(gE.getStatusColor());
> ge.setTextFont(textFont);
> ge.setTextColor(textColor);
>
> All gets displayed nicely. After the initial open of the display, no
> more events (and no colors and fonts) are created by my appl.
>
> However, after some simple horizontal and vertical scrolling, all of a
> sudden my appl crashes with "No more handles exception".
>
> Checking with the Windows Task Manager, it is true, that my appl =
> java.exe need thousands of handles=GDI Objects.
>
> Further investigation wit the Sleak tools show me, that there are
> thousands of Fonts used in my appl.
>
> So something within the Gantt class allocates Fonts, but does not free
> them.
>
> Any ideas of fixes?
|
|
|
Powered by
FUDForum. Page generated in 0.02954 seconds