Note that there are some explanatory texts on larger screens.

plurals
  1. POSilverlight Memory Leak
    primarykey
    data
    text
    <p>I've been struggling with this for a while now and I really can't find a solution. I've checked all the standard memory leak issues i.e. PageActivity, DataTemplates etc. and it's nothing like that. I am using windbg and with !GCRoot I get:</p> <blockquote> <p>DOMAIN(097C9970):HANDLE(Pinned):52412f8:Root: 0ade4260(System.Object[])-><br> 09deab28(System.Collections.Generic.List`1[[System.Object, mscorlib]])-><br> 0a3a8708(System.Object[])-><br> 0a42becc(System.Windows.Shapes.Rectangle)-><br> 0a4267e4(System.Windows.Controls.Grid)-><br> 0a40da84(System.Windows.Controls.Primitives.CalendarDayButton)-><br> 0a3cc8e8(System.Windows.Controls.Calendar)-><br> 0a3ccd44(System.Windows.Input.MouseButtonEventHandler)-><br> 0a3cc828(System.Windows.Controls.DatePicker)-><br> 0a3cd594(System.Windows.Controls.StackPanel)-><br> 0a3cd690(System.Windows.Controls.StackPanel)-><br> 0a3cfcd0(System.Windows.Controls.StackPanel)-><br> 0a3cfdcc(System.Windows.Controls.Border)-><br> 0a3e11f0(System.Windows.Controls.ContentPresenter)-><br> 0a3e00d0(System.Windows.Controls.ContentControl)-><br> 0a3dffd4(System.Windows.Controls.Grid)-><br> 0a3e02d0(System.Windows.Controls.Border)-><br> 0a3de464(System.Windows.Controls.Grid)-><br> 0a3cc160(System.Windows.Controls.Expander)-><br> 0a3cc0b8(System.Windows.Controls.StackPanel)-><br> 0a3d4078(System.Windows.Controls.Grid)-><br> 0a3d4174(System.Windows.Controls.StackPanel)-><br> 0a3d4f90(System.Windows.Controls.ContentPresenter)-><br> 0a3d6398(System.Windows.Controls.ContentPresenter)-><br> 0a3d4ff4(System.Windows.Controls.ContentControl)-><br> 0a3d51e4(System.Windows.Controls.Grid)-><br> 0a3cadd4(System.Windows.Controls.Activity)-><br> 0a3caa4c(System.Windows.Controls.Grid)-><br> 0a3ca310(EMSOLG.Registration.StudentPayDetails)</p> </blockquote> <p>Is there any way I can find out with more detail where is the leak?</p> <p>It happens when I change the selected value of the combobox</p> <pre><code>&lt;ComboBox x:Name="cmbPaymentMethod" Height="23" Background="LightYellow" DisplayMemberPath="Value" SelectedValuePath="Key" SelectedValue="{Binding intPaymentMethod,Mode=TwoWay}" SelectionChanged="cmbPaymentMethod_SelectionChanged" /&gt; </code></pre> <p>The Code behing for the event is:</p> <pre><code>PageActivity.IsActive = true; tblAppForm thisApplication = (tblAppForm)this.DataContext; thisApplication.curInvoiceAmount = 0; RG.Amount = ; thisApplication.curRecovery = 0; txtInvoiceTotal.Text = "0.00"; </code></pre> <p>When the control is unloaded I've tried setting the <code>DataContext = null;</code> as well as a host of other controls and variables that I thought might cause the leak</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload