This question is locked. New answers and comments are not allowed.
v.2010.1.603.1040 [Installation Folder]
I had noticed recently my rad windows where not disposing (my page uses aprox 10mb of memory on a win7 x64 )
So i tried doing a whole lot of things to see why the GC wasn't collecting
In the end, I have a button doing just this
(Button click calls this method)
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.8) Gecko/20100202 Firefox/3.5.8
I start off at about 100mb usage with fire fox, I click it about 10-20 times (Adds about 1-3mb per addition) So total usage sits around the 120mb
Then I close all the windows. (Memory goes down by about 1mb when I close the first window, but then it increases by about 0.1-0.2 mb for each subsequent window I close after that) (i.e. 120 -> 119 -> 119.1 -> 119.2 .... -> 122)
Then I click to add a new window (to invoke GC.Collect()) And memory usage is still sitting on 122 + 1-3mb from the last window
This becomes more of an issue when I Put content in the window (Page usage ~ 10mb) as it is not disposing the content either
Full method is:
I had noticed recently my rad windows where not disposing (my page uses aprox 10mb of memory on a win7 x64 )
So i tried doing a whole lot of things to see why the GC wasn't collecting
In the end, I have a button doing just this
(Button click calls this method)
public
void
NewWindow() {
RadWindow radWindow =
new
RadWindow();
radWindow =
new
RadWindow();
GC.Collect();
radWindow.Show();
}
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.8) Gecko/20100202 Firefox/3.5.8
I start off at about 100mb usage with fire fox, I click it about 10-20 times (Adds about 1-3mb per addition) So total usage sits around the 120mb
Then I close all the windows. (Memory goes down by about 1mb when I close the first window, but then it increases by about 0.1-0.2 mb for each subsequent window I close after that) (i.e. 120 -> 119 -> 119.1 -> 119.2 .... -> 122)
Then I click to add a new window (to invoke GC.Collect()) And memory usage is still sitting on 122 + 1-3mb from the last window
This becomes more of an issue when I Put content in the window (Page usage ~ 10mb) as it is not disposing the content either
Full method is:
public
void
NewCashSalePage() {
RadWindow radWindow =
new
RadWindow();
radWindow =
new
RadWindow();
radWindow.Header =
"Header"
;
radWindow.DataContext = cashSaleDomainDataSource;
CashSale_Page cashSale_Page =
new
CashSale_Page(
this
);
radWindow.Content = cashSale_Page;
radWindow.MinWidth = cashSale_Page.MinWidth + Values.RadWindowBorderWidth;
radWindow.MinHeight = cashSale_Page.MinHeight + Values.RadWindowBorderHeight;
radWindow.Width = cashSale_Page.MinWidth + Values.RadWindowBorderWidth;
radWindow.Height = cashSale_Page.MinHeight + Values.RadWindowBorderHeight;
radWindow.Show();
radWindow.PreviewClosed +=
new
System.EventHandler<WindowPreviewClosedEventArgs>(Window_PreviewClosed);
}