Hi,
Memory leakage issue found while disposing form that added in RadPageView Control. But the memory not decresed even I disposed form and RadPageViewPage object. Please Help. I am attaching sample project and demo video with question.
Following are the code samples
Adding from to PageView
frmSales frm = new frmSales();
frm.Dock = DockStyle.Fill;
frm.TopLevel = false;
frm.TopMost = true;
frm.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
var page = new RadPageViewPage();
page.Controls.Add(frm);
radPageView1.Pages.Add(page);
radPageView1.SelectedPage = page;
frm.Show();
Removing Form from PageView
RadPageViewPage page = radPageView1.Pages[radPageView1.Pages.Count - 1];
RadForm frm = (RadForm)page.Controls[0];
frmSales obj = (frmSales)frm;
radPageView1.Pages.Remove(page);
page.Dispose();
page = null;
obj.ClearMem2();
obj.Close();
obj.Dispose();
obj = null;
GC.Collect();
GC.WaitForPendingFinalizers();
GC.Collect();
Any help will be very appreciated. Thanks in advance