Skip to main content



      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 15:13 Go to next message
Eclipse UserFriend
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 04:48 Go to previous message
Eclipse UserFriend
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: Wed Jul 23 13:46:53 EDT 2025

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

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

Back to the top