Memory leak in Xamarin Android

SureshBalaramanSureshBalaraman USMember
edited December 2015 in Xamarin.Android

I have found the memory leak in Xamarin Android, When I dynamically add and remove the control in the layout, and set the control instance as null, but still the reference maintained in the memory. The instance of the control are not cleared by the GC. But in Native, it has been removed and no instance for that control after its removed from the layout and set it as null for that instance.

please provide the solution to solve this and Thanks in advance.

Best Answer

  • ashalvaashalva GE ✭✭✭
    edited December 2015 Accepted Answer

    Add seekbar.Dispose (); in your else statement.

Answers

  • ashalvaashalva GEMember ✭✭✭
    edited December 2015 Accepted Answer

    Add seekbar.Dispose (); in your else statement.

Sign In or Register to comment.