The debug and release versions of vs library functions are inconsistent.

Source: Internet
Author: User

I recently learned that this was the case because my project crashed when I was doing exercises at the front-end, but there was no problem running under release. So I am depressed, and the entire program cannot use breakpoint debug. After the program is written, I can only rely on printf to output debugging information on the console to determine the cause of the error ......

Later, an experienced programmer in our group helped us find the problem. I was told that the debug and release implementations of these functions in vs were inconsistent only when the program collapsed in a scanf_s reading file. Some parts of my code were not correctly written, however, debugging is more rigorous, so it crashes ......

Another problem is that when my socket server runs under debug, the accept function is always not blocked and an invalid socket is returned. It works normally under relase ...... Later I found the cause, and the last accept parameter was wrong ......

In fact, I just want to say that, in general, there must be a reason for the strange problem ......

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.