This is a migrated thread and some comments may be shown as answers.

RadWindow (with databinding) still in memory after closing

1 Answer 27 Views
Window
This is a migrated thread and some comments may be shown as answers.
Rodenberg
Top achievements
Rank 1
Rodenberg asked on 17 Oct 2012, 10:04 AM
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

1 Answer, 1 is accepted

Sort by
0
Ivo
Telerik team
answered on 22 Oct 2012, 08:10 AM
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.

Tags
Window
Asked by
Rodenberg
Top achievements
Rank 1
Answers by
Ivo
Telerik team
Share this question
or