I'm currently building an application that makes extensive use of the ODBC class CRecordSet of the Visual C++ MFC classes. While writing my application, I've constantly worked in the Debug mode and my program works fine. However, when I rebuilt my program in the Release mode, I got the following debug assertion:
Debug Assertion Failed
I've traced the problem (using printf throughout my code) to the CRecordSet::Open method used to open my database.
I would like to know how my program can cause a debug assertion at all after I've compiled it in release mode. Second of all, I'd like to know how to solve this problem. Could this be a wrong build-setting, or is my own code acting up somewhere? And if so, why does my code run perfectly during a debug session?
Thanks in advance for any suggestions / solutions.
PS: I made sure to do 'Rebuild All' when rebuilding for the release version.