Windows has triggered a breakpoint in xxxxx.exe.

Source: Internet
Author: User

Windows has triggered a breakpoint in xxxxx.exe.
This may be due to a previous uption of the heap, and indicates a bug in
Xxxxx.exe or any of the DLLs it has loaded.
The output window may have more diagnostic information

 

This problem always occurs this evening.

When reading and writing a file for the first time, the filehelperfunc: Getline (File * FP, char * pbuffer) function is used, and then this error occurs when fclose, the second parameter is passed to the cstring and then getbuffer, which leads to an error, but it is okay to use char *. I don't know why, but I can only change the path to char.

 

The second error occurs when assigning values to a char * type variable. When the pointer is given a new space and the string value is directly assigned to it, an error occurs, for example, m_pstr = "error". In this case, an error occurs, but sprintf_s can be used.

 

I checked it online. It should be caused by memory operations. The memory is really complicated.

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.