Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Nebula » My Gannt Chart Appl crashes with "No more handles"
My Gannt Chart Appl crashes with "No more handles" [message #527034] Tue, 13 April 2010 19:13 Go to next message
Oberle  is currently offline Oberle Friend
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 #527156 is a reply to message #527034] Wed, 14 April 2010 08:48 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6462
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?
Previous Topic:CalendarCombo java.lang.NumberFormatException
Next Topic:My Gannt Chart Appl crashes with "No more handles"
Goto Forum:
  


Current Time: Sun May 26 14:11:30 GMT 2019

Powered by FUDForum. Page generated in 0.01906 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top