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 #599445] 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 #599465 is a reply to message #599445] Wed, 14 April 2010 08:48 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
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?
Previous Topic:My Gannt Chart Appl crashes with "No more handles"
Next Topic:CalendarCombo None and Today buttons in wrong place
Goto Forum:
  


Current Time: Thu Apr 18 13:13:00 GMT 2024

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

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

Back to the top