Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » memory problem
memory problem [message #180637] Mon, 09 May 2005 16:09 Go to next message
Eclipse UserFriend
Originally posted by: paulotcbalo.cbalo.ro

Hi there
When i display a few ImageFigures on the main viewer and then scroll the
viewer up and down it seems like eclipse take more and more memory...the
more i make dynamic changes on my viewer (scroll it,add figures,move
figures,...) the more memory it takes and in the end eclipse crashs
(Dialog open exception: org.eclipse.swt.SWTError: No more handles etc...)
Has anyone got a clue to solve this problem ?
Thanxs for help !
Re: memory problem [message #180679 is a reply to message #180637] Mon, 09 May 2005 17:19 Go to previous messageGo to next message
Pratik Shah is currently offline Pratik ShahFriend
Messages: 1077
Registered: July 2009
Senior Member
Are you creating too many images? And/Or not disposing them? Use Sleak
(available from the SWT site) to identify resource leaks.

"Paulo Cbalo" <paulotcbalo@cbalo.ro> wrote in message
news:48fe4c7515891629131677cc14a914d6$1@www.eclipse.org...
> Hi there
> When i display a few ImageFigures on the main viewer and then scroll the
> viewer up and down it seems like eclipse take more and more memory...the
> more i make dynamic changes on my viewer (scroll it,add figures,move
> figures,...) the more memory it takes and in the end eclipse crashs
> (Dialog open exception: org.eclipse.swt.SWTError: No more handles etc...)
> Has anyone got a clue to solve this problem ?
> Thanxs for help !
>
Re: memory problem [message #180746 is a reply to message #180679] Tue, 10 May 2005 08:56 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: paulo.test.fr

I use a lot of ImageFigures which load their image from static images
instances.But even with a few ImageFigures (6-7),scrolling the main panel
up and down makes the memory rise and rise...
Anyways how do you set up Sleak in your eclipse plug-in ? i mean where to
find the display of the example lines ?
(DeviceData data = new DeviceData();
data.tracking = true;
Display display = new Display(data);)
Re: memory problem [message #180865 is a reply to message #180637] Wed, 11 May 2005 00:21 Go to previous message
Eclipse UserFriend
Originally posted by: kirilmitov.kkkk.com

I hade the same problem with Fonts under Windows.
Windows has a defined number of font handles. I was creating too many
fonts without disposing them and the exception was the same
"org.eclipse.swt.SWTError: No more handles etc..."
Previous Topic:P5 glove and GEF/SWT
Next Topic:Drawing Button/Combobox/checkbox in editor
Goto Forum:
  


Current Time: Fri Apr 19 11:52:52 GMT 2024

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

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

Back to the top