Error when attempting to close Application

Jul 29, 2009 at 8:15 PM

I am using the AvalonDock dll with my project.  I am getting an error when I attempt to close the application.

I am using :

 

     private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)
        {
     
            Application.Current.Shutdown();
        }

I get the exception: Cannot set Visibility or call Show, ShowDialog, Close, or Hide while window is closing.

Anyone know why this happens?

 

Aug 6, 2009 at 9:50 PM

Figured out what was wrong. I was attempting to to do some savelayout restorelayout stuff in the wrong place and it caused

the app to blow up.  This question is closed for me.