dumbeau / AutoHotPie

Radial menus in Windows, aka PIE MENYOOS!
MIT License
340 stars 18 forks source link

Memory leak when Pie Menus refresh visual. #40

Open dumbeau opened 2 years ago

dumbeau commented 2 years ago

There is a memory leak. Memory use increases whenever a pie menu refreshes its visual, but the memory is not released when the menu closes.

uluk posted a comment on youtube:

I think there's a memory leak somewhere. I keep autohotpie open indefinitely and it went up to 400 MBs of ram reserved. May want to put in an auto restart function every X hours to skirt the issue...

This was confirmed on my end. I will fix this and add the auto restart to safeguard against any future memory leaks that may arise.

dumbeau commented 2 years ago

This has been partially fixed and v1.0.17 was updated. The memory gets emptied whenever the pie menu closes. However if somebody runs the pie menu for a really long time while aggressively hovering over different options, the memory increases. Takes a while to get to even 100 MB but I will add a safeguard or fix the leak.

mmikeww commented 9 months ago

probably a leak related to gdip somewhere, will have to dig deeper