I have a SDI project in where the CMainFrame class contains a splitter window. I am currently at run time changing the views in the right pane. I am also associating the view with the document. All of this works fine. The problem is if I do any kind of serializing, it hangs up in the function CWnd:estroyWindow() on the call :estroyWindow(m_hwnd). In my document class I have overridden the virtual function SaveModified. I have even taken all of that code out and put the same functionality in my CMainFrame class and just let the document worry if the view has been modified and I get the same thing. Any help would be appreciated.

Thanks,
Wayne