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

CheckListCtrlMixin is leaking GDI objects #752

Closed
konstantinbo opened this Issue Feb 16, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@konstantinbo
Contributor

konstantinbo commented Feb 16, 2018

Operating system: Windows 7 64-bit
wxPython version: 4.0.1
Stock or custom build: stock
Python version: 2.7.14
Stock or custom build: stock

Description of the problem:
The wx.lib.mixins.listctrl.CheckListCtrlMixin creates and sets a wx.Imagelist which doesn't get destroyed and thus is leaking 4 GDI Objects on every run. Changing SetImageList to AssignImageList fixes this. An alternative solution would be binding the wx.EVT_WINDOW_DESTROY Event and calling the Destroy-method manually.

@konstantinbo konstantinbo changed the title from CheckListCtrl is leaking GDI objects to CheckListCtrlMixin is leaking GDI objects Feb 16, 2018

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