Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resource leak - to many images created #12

Open
GoogleCodeExporter opened this issue May 2, 2015 · 1 comment
Open

Resource leak - to many images created #12

GoogleCodeExporter opened this issue May 2, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Open the Runner view
2. Add a couple of categories
3. Navigate in the tree a bit and also open the run configuration dialog.
4. Eventually (especially if you have many launches (we have over 100!)) you 
will run out of handles and eclipse will terminate.

What version of the product are you using? On what operating system?
1.3.0 on Windows

Please provide any additional information below.

I added the following to the class RunnerPlugin and replaced the call to 
createImage with this one where appropriate. This looks promising as far as I 
can tell.

public Image getImage(String pImage) {
  if (mImageRegistry == null) {
    mImageRegistry = new ImageRegistry(Display.getDefault());
  }
  Image tImage = mImageRegistry.get(pImage);
  if (tImage == null) {
    tImage = getImageDescriptor(pImage).createImage();
    mImageRegistry.put(pImage, tImage);
  }
  return tImage;
}



Original issue reported on code.google.com by [email protected] on 7 Dec 2011 at 2:03

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant