By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,691 Members | 1,499 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,691 IT Pros & Developers. It's quick & easy.

CHtmlView fails in PostNcDestroy

P: n/a
I have an application which, in response to a button
click, opens a secondary window to show a report.

The window simply consists of a subclass of CFrameWnd and
a subclass of CHtmlView.

Everything works great until I close the window. When
CView::PostNcDestroy is executed(which simply does a
delete this), an exception is thrown in

If I override PostNcDestroy and call CWnd::PostNcDestroy,
the error does not occur. But when I looked the CWnd
implementation, it doesn't do anything.

So what should I do? If I don't execute
CView::PostNcDestroy, won't I have memory leaks? But I
can't seem to get around the exception if I let
CView::PostNcDestroy get called.
Jul 19 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.