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.