Re: Run-Time Check Failure #0



>When I run it in the debugger I am getting the following IDE error when
>one of my CWindowImpl based views is destroyed (I did not get the error
>in VC++ 6.0):

Since it's only happening when the window is destroyed, I think the
hook callback definition itself is probably ok. It looks like it's
correctly defined, and if it were wrong, I'd expect you'd get the
error any time a message is caught by it.

If you debug the application, where precisely does the error show up?

Is it perhaps a consequence of not removing the hook properly?

Dave
--
MVP VC++ FAQ: http://www.mvps.org/vcfaq
.