C#C
C#15mo ago
ToastedTuna

✅ Winforms not freeing memory when disposing of control

void NewButtonOnClick(Button btn)
{
    //Delete the button completely, write code
    btn.Parent.Controls.Remove(btn);
    btn.Dispose();
    btn = null;
}


The memory usage continues going up
Was this page helpful?