Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
155
Memory leak when using RestrictInContainer
posted

I've noticed a memory leak when I add "RestrictInContainer = true" to my XamWebDialogWindows. Disabled, everything gets garbage collected as it should; enabled, though, the control appears to remain subscribed to some SizeChanged events:

0:022> !gcroot 07726064
Note: Roots found on stacks may be false positives. Run "!help gcroot" for
more info.
Scan Thread 4 OSTHread 17a0
Scan Thread 8 OSTHread 188c
Scan Thread 9 OSTHread 2c8
Scan Thread 10 OSTHread 17b0
DOMAIN(0CC4B488):HANDLE(Pinned):10712f8:Root:  0823d660(System.Object[])->
  072cbf70(System.Windows.Controls.Grid)->
  07787a18(System.Windows.SizeChangedEventHandler)->
  0773b1f0(System.Object[])->
  07730998(System.Windows.SizeChangedEventHandler)->
  07726064(StaffTrak.Silverlight.SilverlightMessageBox)

I tried setting RestrictInContainer to false before removing the dialog from the containing grid, but that doesn't seem to have any effect.

Can you verify this memory leak?

Parents Reply Children