Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » "no more handles" while displaying many SWT widgets
"no more handles" while displaying many SWT widgets [message #460814] Wed, 07 September 2005 21:33 Go to next message
Eclipse UserFriend
Originally posted by: nohtml.gmx.de

Hi,

I'm writing a RCP application with an editor for showing some
questionnaires. If you open too many editors, you get a
"Unhandled event loop exception. Reason: No more handles".

After searching in the news archive, I got the fact that Win 2k has a
maximum of 10k handles, but one questionnaire with about 100 questions
needs approx. 5 labels, 1 textfield, 3 checkboxes per question.

This means, if the user opens 10 editors at the same time, the program
crashes ...

I'm new to SWT (but experienced with swing), so is this a general issue
on SWT or am I doing something wrong ?

Thanks for your help
Karl
Re: "no more handles" while displaying many SWT widgets [message #460828 is a reply to message #460814] Thu, 08 September 2005 10:29 Go to previous messageGo to next message
Alex Blewitt is currently offline Alex BlewittFriend
Messages: 946
Registered: July 2009
Senior Member
You're almost certainly not 'dispose()'ing your images/labels/text fields etc. when they're not in use. Whether or not there are sensible limits that prevent all 100 being shown at once, I don't know.

You could always change your editor to cycle through the questions one by one (or ten by ten...) to avoid any issues with too many widgets, but the most common time this comes up is when dispose() isn't being cascaded after closing/opening the editors multiple times ...

HTH.
Re: "no more handles" while displaying many SWT widgets [message #460840 is a reply to message #460814] Thu, 08 September 2005 13:52 Go to previous message
Eclipse UserFriend
Originally posted by: sunil_kamath.nohotspammail.com

"Karl Rhenius" <nohtml@gmx.de> wrote in message
news:dfnlti$oj4$1@news.eclipse.org...
> Hi,
>
> I'm writing a RCP application with an editor for showing some
> questionnaires. If you open too many editors, you get a
> "Unhandled event loop exception. Reason: No more handles".
>
> After searching in the news archive, I got the fact that Win 2k has a
> maximum of 10k handles, but one questionnaire with about 100 questions
> needs approx. 5 labels, 1 textfield, 3 checkboxes per question.
>
> This means, if the user opens 10 editors at the same time, the program
> crashes ...
>
> I'm new to SWT (but experienced with swing), so is this a general issue on
> SWT or am I doing something wrong ?
>
Maybe you can use GEF to create lightweight components instead.
---
Sunil
Previous Topic:AWT_SWT JTextPane Problem
Next Topic:Drop Target on a Browser
Goto Forum:
  


Current Time: Mon Aug 19 10:23:37 GMT 2019

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

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

Back to the top