问题现象:

使用Vector,函数退出时,内存报错:Invalid address specified to RtlValidateHeap( 000002118AE70000, 00000211AA5A96A0

 

使用Vector,函数退出时,内存报错:Invalid address specified to RtlValidateHeap( 000002118AE70000, 00000211AA5A96A0

 void __CRTDECL operator delete(void* const block, size_t const) noexcept
{
    operator delete(block);
}
 

Invalid address specified to RtlValidateHeap( 000002118AE70000, 00000211AA5A96A0 )

 

解决办法:

在函数内部vector变量声明时,添加static;或者直接设为全局变量。

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-03-04
  • 2021-06-11
  • 2021-08-15
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-28
  • 2021-07-23
  • 2021-04-25
相关资源
相似解决方案