CodeDead / MemPlus

Free up your memory for free!
https://codedead.com/
GNU General Public License v3.0
88 stars 18 forks source link

Crashes at automatic cleanup #9

Closed DotNetDevlll closed 5 years ago

DotNetDevlll commented 5 years ago

Hy, First of all thank you for this awesome app!

When i click manually to cleanup memory it works fine, but the automatic one is always crashes. (The app simply exit, no error message shown) Version:1.3.2.0

image

CodeDead commented 5 years ago

Thank you for pointing that out and apologies for the delay. We have identified an issue with that feature and a fix is on the way!

CodeDead commented 5 years ago

Cause (only when called from the timer due to the nature of their implementation / threading): https://github.com/CodeDead/MemPlus/blob/master/MemPlus/Business/RAM/RamController.cs#L284

Solution: user32.dll API call OpenClipboard followed by EmptyClipboard and lastly CloseClipboard

CodeDead commented 5 years ago

This bug has been fixed in the following commit: https://github.com/CodeDead/MemPlus/commit/d7491011352bf6de3f1e0db07995f00edb409f51

The fix will be publicly available in version 1.4. Thank you for reporting this issue!