Debug Assertion Failed: _CrtIsValidHeapPointer(pUserData)

前端 未结 2 926
[愿得一人]
[愿得一人] 2020-12-21 01:05

Sometimes I get this \"Debug Assertion Failed\" error running my Qt project in debug mode (image). I don\'t know where I wrong because the compiler says nothing and

2条回答
  •  猫巷女王i
    2020-12-21 01:40

    _CrtIsValidHeapPointerUserData means, that you have a heap corruption, which is noticed by debug heap checker. Suspect everybody who can write any information into any deleted dynamic object. And yes, you'll receive heap corruction not immideately on rewrite occurs, but on the next heap check, which will be performed on any next memory allocation/deallocation. However should be simply tracked by a call stack in single threaded applications.

提交回复
热议问题