Im using unity along side the composite application block and am recieving this exception.
Cannot set Visibility or call Show or ShowDialog after window has closed.
The situation is that I am launching the window in question off of a context menu in my shell window. If I then close the window using normal red cross at the top right of the windiw and use the context menu on the shell to again to open the window I receieve
the error. The code that opens the window inside the handler of the context menu is below
var processAnalyserPresenter = Container.Resolve<IProcessAnalyserPresenter>();
If I dont use unity to resolve my presenter class and just new up the concrete the problem goes away. The registration of both the presenter and the view is below.
So neither is regsitered as a singleton but I seem to be getting back the same instance of the view which is causing my problem.