Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 350925

Summary: SWTError: No more handles - Memory leak
Product: [Modeling] AMP Reporter: Jonas Ruttimann <jonas.ruettimann>
Component: AXF UIAssignee: Urs Frei <urs.frei>
Status: CLOSED FIXED QA Contact: Miles Parker <milesparker>
Severity: normal    
Priority: P3    
Version: 0.9.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
solves dispose Problem (GC, Image) none

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.