RadWindow (with databinding) still in memory after closing

2 posts, 0 answers
  1. Rodenberg
    Rodenberg avatar
    18 posts
    Member since:
    Apr 2012

    Posted 17 Oct 2012 Link to this post

    Hello Telerik Team,

    i see some problem with the RadWindow after Close.

    I had a RadWindow with databinding. after i close the window the window and its binding is still there.

    here is my code:

    Public WithEvents ScreenDoorDetails As DoorDetails
     
    Private Sub btstore_Click(sender As Object, e As System.Windows.RoutedEventArgs) Handles btstore.Click
            ScreenDoorDetails = New DoorDetails(Tuerelemente.Tuerelemente)
            ScreenDoorDetails.ShowDialog()
    End Sub
     
     Private Sub ScreenDoorDetails_Closed(sender As Object, e As Telerik.Windows.Controls.WindowClosedEventArgs) Handles ScreenDoorDetails.Closed
            ScreenDoorDetails.DataContext = Nothing
            ScreenDoorDetails = Nothing
     
            GC.Collect()
            
    End Sub

    The binding is still there and i makes me crazy :D
  2. Ivo
    Admin
    Ivo avatar
    390 posts

    Posted 22 Oct 2012 Link to this post

    Hello Philip,

    How do you test that the binding is still alive? I made some tests using JustTrace and everything was disposed as expected. It would be great if you open a support ticket and send us a project demonstrating this issue.

    Greetings,
    Ivo
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft banner
Back to Top