I'm trying to load a SDI architecture from an activeX. I created a CSingleDocTemplate object in the InitInstance() of my COleControlModule object.


In a method of my control, I called OpenDocumentFile on the DocTemplate and then InitialUpdateFrame. It seems to work fine until I exit IE4.... the DocManager and others stuffs don't seem to be destroyed.


How can I do it properly ??????