xamarin / Xamarin.Forms

Xamarin.Forms is no longer supported. Migrate your apps to .NET MAUI.
https://aka.ms/xamarin-upgrade
Other
5.62k stars 1.87k forks source link

The custom control object is not getting disposed, it's shows objects in memory #15259

Open RubaShanmugamm opened 2 years ago

RubaShanmugamm commented 2 years ago

Description

The custom control object is not getting disposed, it shows objects in memory while checking with the Xamarin profiler.

Steps to Reproduce

  1. Run the sample on the Android platform. [Sample For Replication]
  2. Check the memory leak using this link in Xamarin Profiler. https://www.xamarinhelp.com/tracking-memory-leaks-xamarin-profiler/#:~:text=I%20have%20set%20the%20iOS,instruments%20data%20start%20to%20appear.
  3. See the objects that are not getting disposed after the control has been disposed.

Expected Behavior

There are no custom control objects are shown in the Xamarin memory profiler after the navigation.

Actual Behavior

It shows the custom control objects in the Xamarin memory profiler after the navigation.

Basic Information

Environment

Screenshots

Reproduction Link

Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/SampleForReplication1685361626

Workaround

No.

RubaShanmugamm commented 2 years ago

Any update?