Memory leak

Topics: Bug, Help
Nov 4, 2015 at 10:46 AM
Hi,

I use your busydecorator in my wpf project. I noticed that when i open/close a window where i use the busydecorator the window keeps existing in memory and doesn't get collected by the GC.

I just created a window like the one below a couple of times. It doesn't get collected when i follow it with dotMemory.
Call from mainwindow:
 private void ButtonBase_OnClick(object sender, RoutedEventArgs e)
        {
            var window = new Scherm();
            window.ShowDialog();

        }
the window:
<Window x:Class="WPFBackgroundProgressIndicatorSample.Scherm"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:heid="http://schemas.heidesoft.com/components"
        Title="Scherm" Height="300" Width="300">
    <heid:BusyDecorator x:Name="busy" BusyStyle="{StaticResource busyStyle}">
    <Grid>
        <Button Click="ButtonBase_OnClick"></Button>
    </Grid>
    </heid:BusyDecorator>
</Window>