Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Freeze of the whole Windows System
Freeze of the whole Windows System [message #465286] Wed, 28 March 2007 09:03 Go to next message
Eclipse UserFriend
Originally posted by: qsi.nerotech.ch

Hello everybody.

I got another problem. First a simple question: Is there a limit of elements in a tree, table or list view? I got the problem, if I add to many elements to one of these the GUI of the whole Windows-System freezes. And strange is, that the processor is around 1-2%. So my question is how can I manage large numbers of elements in views? There seems to be a problem with that. It's really hard to find the source of the problem. So if anyone had the same problem in the past or has a an idea how to solve this problem feel free to answer ;)

Best regards,
Markus
Re: Freeze of the whole Windows System [message #465290 is a reply to message #465286] Wed, 28 March 2007 09:24 Go to previous messageGo to next message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
Markus Neuenschwander wrote:

>Hello everybody.
>
>I got another problem. First a simple question: Is there a limit of elements in a tree, table or list view? I got the problem, if I add to many elements to one of these the GUI of the whole Windows-System freezes. And strange is, that the processor is around 1-2%. So my question is how can I manage large numbers of elements in views? There seems to be a problem with that. It's really hard to find the source of the problem. So if anyone had the same problem in the past or has a an idea how to solve this problem feel free to answer ;)
>
>
Mmh, if you add that many (how many indeed?) elements you should switch
to use a virtual trees/tables.

Dani

>Best regards,
>Markus
>
>
Re: Freeze of the whole Windows System [message #465316 is a reply to message #465286] Wed, 28 March 2007 12:34 Go to previous messageGo to next message
Hugo A. Garcia is currently offline Hugo A. GarciaFriend
Messages: 258
Registered: July 2009
Senior Member
Markus Neuenschwander wrote:
> Hello everybody.
>
> I got another problem. First a simple question: Is there a limit of elements in a tree, table or list view? I got the problem, if I add to many elements to one of these the GUI of the whole Windows-System freezes. And strange is, that the processor is around 1-2%. So my question is how can I manage large numbers of elements in views? There seems to be a problem with that. It's really hard to find the source of the problem. So if anyone had the same problem in the past or has a an idea how to solve this problem feel free to answer ;)
>
> Best regards,
> Markus

Test... turn off the filtering and sorting and then load the data.
Usually these are the most expensive operations (time wise) since you
are basically looping over all the elements of your data structures
multiple times.

As suggested elsewhere... virtual t* might be a solution But sorting and
filtering might be a problem (might) since if I recall properly, sorting
is undefined in a virtual table. If this is true... then you will have
to sort your data before you set call setInput().


-H

Ref

http://www.eclipse.org/articles/Article-SWT-Virtual/Virtual- in-SWT.html
Re: Freeze of the whole Windows System [message #465410 is a reply to message #465316] Thu, 29 March 2007 06:24 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: qsi.nerotech.ch

Oh thanks a lot. But I just discovered the problem. I created a new Image for each element instead of just one and use it again. So that seemed to crash the whole windows-GUIs ;). My maximum of elements in the Table is around 2000. Is that too much for a simple table that I have to use virtual tables instead?
Re: Freeze of the whole Windows System [message #465553 is a reply to message #465410] Mon, 02 April 2007 10:03 Go to previous message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
Markus Neuenschwander wrote:

>Oh thanks a lot. But I just discovered the problem. I created a new Image for each element instead of just one and use it again. So that seemed to crash the whole windows-GUIs ;). My maximum of elements in the Table is around 2000. Is that too much for a simple table that I have to use virtual tables instead?
>
>
It not only depends on the widget but also how expensive it is to
compute the label(s) and image for each element.

Dani
Previous Topic:adding native libaries
Next Topic:open dialog on perspective change
Goto Forum:
  


Current Time: Fri Apr 26 16:18:51 GMT 2024

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

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

Back to the top