提示DescriptionA module attempted to free memory that was allocated by a different module. If a module is statically linked to the C runtime library and uses an RTL call (such as malloc) to allocate memory, then it is the module抯 responsibility to free that memory. The memory cannot be freed from a different module.RepairTo repair this type of error, verify that all modules free their own memory. If modules must share pointers, they should use a dynamic version of the RTL. 我在A类有定义是个STATIC变量 HANDLE * CConstValue::constXhandle = new HANDLE[atoi(rowsn)]; B类 结束时候调用 delete CConstValue::constXhandle;哪里不对了?
我在A类有定义是个STATIC变量
HANDLE * CConstValue::constXhandle = new HANDLE[atoi(rowsn)]; B类 结束时候调用
delete CConstValue::constXhandle;哪里不对了?