Exception:"No more handles"--How to trace the resources loading and dispose in RCP applica [message #466444] |
Tue, 10 January 2006 15:41 |
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 16:35 |
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 16:35 |
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 16:43 |
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 16:51 |
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
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03292 seconds