yurkinh / Plugin.Maui.Calendar

.NET MAUI port of XF calendar plugin
MIT License
125 stars 12 forks source link

Possible Memory Leaks #79

Open usefulBeeing opened 1 month ago

usefulBeeing commented 1 month ago

Since I came across this MemoryToolkit, I created a wrapper around it and have been testing multiple Maui elements and plugins. Today, I wanted to share the results of testing this promising Calendar plugin for possible memory leaks, which if proven, should be a addressed before the next release, in my opinion.

_PluginMauiCalendarLeaks

yurkinh commented 1 month ago

Hi @usefulBeeing Yes. I have done the same tests a few weeks ago and hoped that with the new .NET maui release, most of them would be fixed. But not. Looks like I will need to integrate the "TearDown" behavior from MemoryToolkit to dispose controls properly. Thanks for doing the tests and confirming my results.

usefulBeeing commented 1 month ago

Thank you @yurkinh for your quick response. I just want to mention that I tested other plugins, some of them leaked, like Syncfusion's, which surprised me, while others like ComponentOne and CalendarView passed the the leak test. I can't speak of why those plugins didn't leak or of what techniques they used to overcome this issue, but I think they're worth looking at in depth.