What does a failed debug assert mean?
Simply put, it means you have a bug in your code. Asserts check for some condition that must always be true, and if the condition is ever false, it indicates a bug in the calling code (yours). A full description of asserts is beyond the scope of this FAQ, but when a library such as MFC gives an assert failure message, it means the library detected that you are incorrectly using it or calling one of its functions with bad parameters.