Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 350925 - SWTError: No more handles - Memory leak
Summary: SWTError: No more handles - Memory leak
Status: CLOSED FIXED
Alias: None
Product: AMP
Classification: Modeling
Component: AXF UI (show other bugs)
Version: 0.9.0   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Urs Frei CLA
QA Contact: Miles Parker CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-01 07:38 EDT by Jonas Ruttimann CLA
Modified: 2011-08-05 05:34 EDT (History)
0 users

See Also:


Attachments
solves dispose Problem (GC, Image) (36.24 KB, patch)
2011-07-01 08:35 EDT, Urs Frei CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jonas Ruttimann CLA 2011-07-01 07:38:25 EDT
When executing a model with the chart graphics visible, after quite some time an SWT error will occur: No more handles. I'm not sure if this one is always reproducable. Problably you'll have to run the simulation multiple times.

The cause is expected to be Images, Fonts, Colors or GCs that are not being disposed. This could cause the memory leak.
Comment 1 Urs Frei CLA 2011-07-01 08:35:37 EDT
Created attachment 198961 [details]
solves dispose Problem (GC, Image)

The class ChartEditPart generated a lot of (GC, Image) elements that were not disposed
Comment 2 Jonas Ruttimann CLA 2011-07-01 08:53:16 EDT
Thanks for the patch, Urs! I'm committing it.
Comment 3 Jonas Ruttimann CLA 2011-08-05 05:34:49 EDT
The problem seems to be fixed. I'm closing this bug.