Community
Participate
Working Groups
Created attachment 279705 [details] Create a table and hyperlinks to it. When attempting to create huge number of hyperlinks(5000+), eclipse throws 'No more handles' error. When the number is less than 5000, the application runs but will be too slow to respond. I have attached the java class to reproduce the issue(attachment TableEditorTest.txt). Similar to this example, i am creating hyperlinks in my application and i am facing this problem. Some ways i tried to fix this issue, - tried increasing the heap size and that didn`t help. - I have also tried changing the registry value as in the commnet(https://bugs.eclipse.org/bugs/show_bug.cgi?id=292464#c13), but that didn`t solve my problem as well.
SWT uses native win32 widgets by design. The 10k handle limit is unavoidable. Your best option is to custom draw the links. It's likely to be much faster and use less memory too.
(In reply to Nikita Nemkin from comment #1) > SWT uses native win32 widgets by design. The 10k handle limit is unavoidable. > > Your best option is to custom draw the links. It's likely to be much faster > and use less memory too. I didn`t get what 5000 hyperlinks creation has got to do with 10K limit. Also, what do you mean by 'custom draw the links'? Isn`t there a workaround to overcome 10K limit? I need to fix this as soon as possible as my customer is waiting for the fix.
(In reply to Nikita Nemkin from comment #1) > SWT uses native win32 widgets by design. The 10k handle limit is unavoidable. > > Your best option is to custom draw the links. It's likely to be much faster > and use less memory too. Hi Nikita, Please share more information/ideas on how anyone can get away with 10K limit. Appreciate any SWT snippet achieving that. Thanks!
(In reply to Manoj BB from comment #2) > (In reply to Nikita Nemkin from comment #1) > > SWT uses native win32 widgets by design. The 10k handle limit is unavoidable. > > > > Your best option is to custom draw the links. It's likely to be much faster > > and use less memory too. > > I didn`t get what 5000 hyperlinks creation has got to do with 10K limit. Seeing your test snippet, it looks like you are creating two table columns, each containing Hyperlink. IMO that's why you hit the limit at 5000 hyperlinks. > Also, what do you mean by 'custom draw the links'? > Isn`t there a workaround to overcome 10K limit? > I need to fix this as soon as possible as my customer is waiting for the fix. Here is the reasoning from Microsoft for the 10K limit: https://devblogs.microsoft.com/oldnewthing/20070718-00/?p=25963
Created attachment 279819 [details] Create table with fake controls. I made an almost good alternative which can handle 10,000 rows. It is almost good because it requires FULL_SELECTION to be enabled. For whatever reason it is not possible to get the cell at a point when it is not selectable at this point.
(In reply to Paul Pazderski from comment #5) > Created attachment 279819 [details] > Create table with fake controls. > > I made an almost good alternative which can handle 10,000 rows. It is almost > good because it requires FULL_SELECTION to be enabled. For whatever reason > it is not possible to get the cell at a point when it is not selectable at > this point. Thanks Paul for sharing this SWT snippet. Clsoing, as we don't expect any changes in SWT side for this bug.