I had a strange problem with assert in Visual C ++ 2005. I tried to submit statements to my program, and regardless of what I am trying to use (assert () or BOOST_ASSERT_MSG), it gives the same error message which nothing tells me that a debugging error has occurred.
Debug error!
Program:...
This application asked Runtime to terminate it in an unusual way. For more information, contact support.
(Click Retry App Debugging)
Here is the boost statement that I am using
BOOST_ASSERT_MSG(deathRow.size() >= 3, "There are less than 3 blocks being deleted!");
And yes, this gives the same error message:
assert(deathRow.size() >= 3 && "There are less than 3 blocks being deleted");
An incorrect error occurs no matter which project I use, new or old.
I have no idea why. I know that I used to use statements in another program and did not have this problem. Help will be appreciated.
source share