-
Notifications
You must be signed in to change notification settings - Fork 119
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
[win32] HDC leak in Image.createGdipImage() #21
Comments
Signed-off-by: Alexandr Miloslavskiy <alexandr.miloslavskiy@syntevo.com>
This is a serious regression. It makes entire Windows slower. Also, when leak reaches 10000, application either dies on |
This is a regression from recent Bug 493455, where this line was lost during refactoring: device.internal_dispose_GC(hDC, null) Signed-off-by: Alexandr Miloslavskiy <alexandr.miloslavskiy@syntevo.com>
This is a regression from recent Bug 493455, where this line was lost during refactoring: device.internal_dispose_GC(hDC, null) Signed-off-by: Alexandr Miloslavskiy <alexandr.miloslavskiy@syntevo.com>
…Image"" This reverts commit 7c72227. Reason for revert: Considering for 4.24 M1 Change-Id: I1a6fc26f96a0ccd82c7aa5994fa134f798e40ef4 Reviewed-on: https://git.eclipse.org/r/c/platform/eclipse.platform.swt/+/191861 Tested-by: Niraj Modi <niraj.modi@in.ibm.com> Reviewed-by: Niraj Modi <niraj.modi@in.ibm.com>
To be more precise, this was the change here: Thanks Alex, I can reproduce & verified the fix is working. |
This is a regression from recent Bug 493455, where this line was lost during refactoring: device.internal_dispose_GC(hDC, null) Signed-off-by: Alexandr Miloslavskiy <alexandr.miloslavskiy@syntevo.com>
Thanks Alexandr/Andrey, closing for 4.24 M1 |
Fixes eclipse-platform#25 Regression from eclipse-platform#21 Signed-off-by: Alexandr Miloslavskiy <alexandr.miloslavskiy@syntevo.com>
Fixes eclipse-platform#25 Regression from eclipse-platform#21 Signed-off-by: Alexandr Miloslavskiy <alexandr.miloslavskiy@syntevo.com>
Bug 493455 accidentally removed
device.internal_dispose_GC(hDC, null)
fromImage.createGdipImage()
on win32, which now leaks oneHDC
per image created. Note thatGC.drawImage()
may create the image internally.As the leak grows, Windows get slower. When leak reaches 10000 (default maximum for one process), SWT will begin to throw
SWT.error()
and UI begins to malfunction.I'll provide a patch.
The text was updated successfully, but these errors were encountered: