6.5的,15M左右,安装后也没看到集成到VC上然后我用DEBUG的程序发现有泄漏,换了RELEASE的就没了因为他没集成我直接用OPEN开我的EXE的,这样操作对吗?另外我的程序有问题吗

解决方案 »

  1.   

    提示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;哪里不对了?
      

  2.   

    delete [] CConstValue::constXhandle;