Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Exception:"No more handles"--How to trace the resources loading and dispose in RCP applica
Exception:"No more handles"--How to trace the resources loading and dispose in RCP applica [message #466444] Tue, 10 January 2006 10:41 Go to next message
Eclipse User
Originally posted by: shikai.cn.ibm.com

Hi,everyone.I got a problem when I implement a RCP app.


This RCP is based on a big xml data.And all the GUI controls will be
created and layout based on this xml data file.
When user open this xml data in app,several tab pages and several panels
will be created and layouted.
However a problem is always raised out when I open this xml data in the
5th time.It means the 1th-4th time I opened is no error.The exception is
"No more handles".However I disposed all the dynamic control each time
when I reopen the new page.I dont know how to catch the problem.

who knows?
Re: Exception:"No more handles"--How to trace the resources loading and dispose in RCP app [message #466452 is a reply to message #466444] Tue, 10 January 2006 11:35 Go to previous messageGo to next message
Eclipse User
Originally posted by: richkulp.us.NO_SPAM.ibm.com

Try using SLEAK.

http://www.eclipse.org/swt/tools.php


shikai wrote:
> Hi,everyone.I got a problem when I implement a RCP app.
>
>
> This RCP is based on a big xml data.And all the GUI controls will be
> created and layout based on this xml data file.
> When user open this xml data in app,several tab pages and several panels
> will be created and layouted.
> However a problem is always raised out when I open this xml data in the
> 5th time.It means the 1th-4th time I opened is no error.The exception is
> "No more handles".However I disposed all the dynamic control each time
> when I reopen the new page.I dont know how to catch the problem.
>
> who knows?
>
>
>
>

--
Thanks,
Rich Kulp
Re: Exception:"No more handles"--How to trace the resources loading and dispose in RCP app [message #466454 is a reply to message #466444] Tue, 10 January 2006 11:35 Go to previous messageGo to next message
Eclipse User
Originally posted by: olivier_thomann.NOca.ibm.comSPAM

shikai a écrit :
> This RCP is based on a big xml data.And all the GUI controls will be
> created and layout based on this xml data file.
> When user open this xml data in app,several tab pages and several panels
> will be created and layouted.
> However a problem is always raised out when I open this xml data in the
> 5th time.It means the 1th-4th time I opened is no error.The exception is
> "No more handles".However I disposed all the dynamic control each time
> when I reopen the new page.I dont know how to catch the problem.
>
> who knows?
It looks like you have a leak when you create widgets.
You should use the sleak plugin available on the SWT web page.
http://www.eclipse.org/swt/tools.php

Install it and check what resources are left behind when closing your pages.
--
Olivier
Re: Exception:"No more handles"--How to trace the resources loading and dispose in RCP app [message #466456 is a reply to message #466452] Tue, 10 January 2006 11:43 Go to previous messageGo to next message
Eclipse User
Originally posted by: shikai.cn.ibm.com

Thanks a lot.

And I did try sleak tools and the swt spy.
However it seems not work.After I configed the sleak tools,and when i open
the sleak view,a exception be throwed:

Unable to create view: Plug-in org.eclipse.swt.sleak was unable to load
class org.eclipse.swt.sleak.views.SleakView.
and the details are:
java.lang.ClassNotFoundException: org.eclipse.swt.sleak.views.SleakView
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:403)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:350)
at
org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader. loadClass(AbstractClassLoader.java:78)
at java.lang.ClassLoader.loadClass(Unknown Source)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.loadCl ass(BundleLoader.java:275)
at
org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.java:227)

My eclipse is 3.1.0


"Rich Kulp" <richkulp@us.NO_SPAM.ibm.com>
??????:dq0nns$k8t$1@utils.eclipse.org...
> Try using SLEAK.
>
> http://www.eclipse.org/swt/tools.php
>
>
> shikai wrote:
>> Hi,everyone.I got a problem when I implement a RCP app.
>>
>>
>> This RCP is based on a big xml data.And all the GUI controls will be
>> created and layout based on this xml data file.
>> When user open this xml data in app,several tab pages and several
>> panels will be created and layouted.
>> However a problem is always raised out when I open this xml data in the
>> 5th time.It means the 1th-4th time I opened is no error.The exception is
>> "No more handles".However I disposed all the dynamic control each time
>> when I reopen the new page.I dont know how to catch the problem.
>>
>> who knows?
>>
>>
>
> --
> Thanks,
> Rich Kulp
Re: Exception:"No more handles"--How to trace the resources loading and dispose in RCP app [message #466458 is a reply to message #466452] Tue, 10 January 2006 11:51 Go to previous messageGo to next message
Eclipse User
Originally posted by: shikai.cn.ibm.com

Thank you for you help in the first.
However I had try sleak tools already.But it seems not work.
Even the Sleak view could not be created in Eclipse 3.1.0.
Here is the problems:
java.lang.ClassNotFoundException: org.eclipse.swt.sleak.views.SleakView
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:403)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:350)
at
org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader. loadClass(AbstractClassLoader.java:78)
at java.lang.ClassLoader.loadClass(Unknown Source)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.loadCl ass(BundleLoader.java:275)
at
org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.java:227)


"Rich Kulp" <richkulp@us.NO_SPAM.ibm.com>
Try using SLEAK.
>
> http://www.eclipse.org/swt/tools.php
>
>
> shikai wrote:
>> Hi,everyone.I got a problem when I implement a RCP app.
>>
>>
>> This RCP is based on a big xml data.And all the GUI controls will be
>> created and layout based on this xml data file.
>> When user open this xml data in app,several tab pages and several
>> panels will be created and layouted.
>> However a problem is always raised out when I open this xml data in the
>> 5th time.It means the 1th-4th time I opened is no error.The exception is
>> "No more handles".However I disposed all the dynamic control each time
>> when I reopen the new page.I dont know how to catch the problem.
>>
>> who knows?
>>
>>
>
> --
> Thanks,
> Rich Kulp
Re: Exception:"No more handles"--How to trace the resources loading and dispose in RCP app [message #466557 is a reply to message #466458] Wed, 11 January 2006 10:32 Go to previous messageGo to next message
Veronika Irvine is currently offline Veronika Irvine
Messages: 1272
Registered: July 2009
Senior Member
I am getting the same error. I will investigate.

"shikai" <shikai@cn.ibm.com> wrote in message
news:dq0onh$msq$1@utils.eclipse.org...
> Thank you for you help in the first.
> However I had try sleak tools already.But it seems not work.
> Even the Sleak view could not be created in Eclipse 3.1.0.
> Here is the problems:
> java.lang.ClassNotFoundException: org.eclipse.swt.sleak.views.SleakView
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:403)
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:350)
> at
> org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader. loadClass(AbstractClassLoader.java:78)
> at java.lang.ClassLoader.loadClass(Unknown Source)
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.loadCl ass(BundleLoader.java:275)
> at
> org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.java:227)
>
>
> "Rich Kulp" <richkulp@us.NO_SPAM.ibm.com>
> Try using SLEAK.
>>
>> http://www.eclipse.org/swt/tools.php
>>
>>
>> shikai wrote:
>>> Hi,everyone.I got a problem when I implement a RCP app.
>>>
>>>
>>> This RCP is based on a big xml data.And all the GUI controls will be
>>> created and layout based on this xml data file.
>>> When user open this xml data in app,several tab pages and several
>>> panels will be created and layouted.
>>> However a problem is always raised out when I open this xml data in
>>> the 5th time.It means the 1th-4th time I opened is no error.The
>>> exception is
>>> "No more handles".However I disposed all the dynamic control each time
>>> when I reopen the new page.I dont know how to catch the problem.
>>>
>>> who knows?
>>>
>>>
>>
>> --
>> Thanks,
>> Rich Kulp
>
>
Re: Exception:"No more handles"--How to trace the resources loading and dispose in RCP app [message #466561 is a reply to message #466557] Wed, 11 January 2006 12:09 Go to previous messageGo to next message
Eclipse User
Originally posted by: olivier_thomann.NOca.ibm.comSPAM

Veronika Irvine a écrit :
> I am getting the same error. I will investigate.
Veronika,

I have a version that works fine with 3.1.1 or 3.2.
--
Olivier
Re: Exception:"No more handles"--How to trace the resources loading and dispose in RCP app [message #466574 is a reply to message #466561] Wed, 11 January 2006 14:36 Go to previous message
Veronika Irvine is currently offline Veronika Irvine
Messages: 1272
Registered: July 2009
Senior Member
I have released on new version of the SWT SLeak tool on the SWT homepage.
Please try again.

"Olivier Thomann" <olivier_thomann@NOca.ibm.comSPAM> wrote in message
news:dq3e4c$6g5$1@utils.eclipse.org...
> Veronika Irvine a
Previous Topic:Highlight color in table / trees
Next Topic:Yet another problem with labels
Goto Forum:
  


Current Time: Sat Aug 23 05:36:42 EDT 2014

Powered by FUDForum. Page generated in 0.09240 seconds