std::map.find()崩溃怪事

代码如下(之前已经加锁):

    char* pFuncKey = gh_memory_ffl_to_key(pFile, pFunction, nLine);

    //第二次死在这里,为什么?
    std::map<const char*, GhMemoryRecord*>::iterator funcIter = g_oMemoryRecordFunctionMap.find(pFuncKey);

第一次循环功能正常.过了一会就崩溃.

实在找不出原因.

  也不是说这个绝对不能用,在另外一个函数中,就可以用.难道是有的线程有限制?

猜你喜欢

转载自blog.csdn.net/quantum7/article/details/86245324