Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » No more handles error
No more handles error [message #438941] Mon, 05 July 2004 15:31 Go to next message
Eclipse UserFriend
Originally posted by: caba.netcourrier.com

Hi,

I'm using SWT widgets in a standalone application.
When I use my application for a long time, I always have a crash like this :

Exception in thread "main" org.eclipse.swt.SWTError: No more handles.

I dispose all the composites I can dispose.
What can I do to allow new handles dynamically ?

Can someone help me please ?


Thanks.

CABA
Re: No more handles error [message #438987 is a reply to message #438941] Mon, 05 July 2004 16:20 Go to previous messageGo to next message
Thomas is currently offline ThomasFriend
Messages: 151
Registered: July 2009
Senior Member
Have you disposed every :
- GC,
- Font,
- Image,
- Color
- Widgets
- or other SWT objet

that YOU have created ? (do not dispose OS ressources :) ).

Maybe you can try sleak
http://www.eclipse.org/articles/swt-design-2/sleak.htm to watch for memory
leaks.

If not try to use a profiler (hyades ? i never used it so far).

"CABA" <caba@netcourrier.com> a
Re: No more handles error [message #439048 is a reply to message #438941] Mon, 05 July 2004 20:02 Go to previous messageGo to next message
Michael Keppler is currently offline Michael KepplerFriend
Messages: 164
Registered: July 2009
Senior Member
CABA schrieb:
> Exception in thread "main" org.eclipse.swt.SWTError: No more handles.
>
> I dispose all the composites I can dispose.

Most probably you are working incorrectly with images, e.g. for
returning action or item images. Please read
http://www.eclipse.org/articles/Article-Using%20Images%20In% 20Eclipse/Using%20Images%20In%20Eclipse.html
for more information about the ImageRegistry class and when/how to
dispose image ressources.

Ciao, Michael.
Re: No more handles error [message #439117 is a reply to message #438987] Tue, 06 July 2004 08:38 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: caba.netcourrier.com

Thanks a lot for this little program.
It's exactly what I'm searching.

The number of GC's and cursors increase abnormally.
Now I know where the problem comes from, so I'll can try to correct it.

This "sleak" program is really a good tool :-)

Thanks.

CABA


"Thomas" <t.gros@hyperoffice.fr> a
Re: No more handles error [message #439118 is a reply to message #439048] Tue, 06 July 2004 08:40 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: caba.netcourrier.com

Hi,

My images are static objects.

My problem comes from GC's and cursors (I have tried the "sleak" program,
see the Thomas' message).

Thanks.

CABA


"Michael Keppler" <michael.keppler@gmx.de> a
Re: No more handles error [message #439166 is a reply to message #439117] Tue, 06 July 2004 12:45 Go to previous message
Eclipse UserFriend
Originally posted by: caba.netcourrier.com

Here it is, it works fine now !

Thanks a lot :-))

CABA


"CABA" <caba@netcourrier.com> a
Previous Topic:create and post an event
Next Topic:threading problem with TableTreeViewer.refresh()
Goto Forum:
  


Current Time: Fri Apr 26 12:28:59 GMT 2024

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

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

Back to the top