I was getting a bunch of similar errors. My presumption is that the automatic cleanup that is normally happening is not happening in your OI.
For the following warning:
Warning: calling DestroyWindow in CWnd::~CWnd; OnDestroy or PostNcDestroy in derived class will not be called.
I found the following
article on Microsoft's website.
I fixed the problem by calling
mApplicationMgrCWnd.DestroyWindow();
mSequenceFileViewMgrCWnd.DestroyWindow();
mExecutionViewMgrCWnd.DestroyWindow();
mFilesComboCWnd.DestroyWindow();
// more lines for each CWnd object I have.
For the other warning, I solved by adding the following line in the destructor.
Warning: calling DestroyWindow in CDialog::~CDialog -- OnDestroy or PostNcDestroy in derived class will not be called.
this->DestroyWindow();
Hope this helps!
Allen P.
NI