C Run-Time Error R6018
The program encountered an unexpected error while performing a memory-management operation.
This error usually occurs if the program inadvertently alters the run-time heap data. However, it can also be caused by an internal error in the run-time or operating-system code.
If your compiler provides a library containing _heapchk and _heapwalk, you can use these functions to diagnose this error.