Monday, November 24, 2014

[OpenCV] corruption of the heap with CrtIsValidHeapPointer

[Problems] Under debug mode, errors of "Windows has triggered a breakpoint" and "

This may be due to a corruption of the heap".


[Solution] Configuration Properties->c/c++->code generation->runtime library
Change from "/MTd" to "/MDd".

Ref to

  1.  http://msdn.microsoft.com/zh-tw/library/2kzt1wy3.aspx
  2. http://blog.monkeypotion.net/gameprog/beginner/love-and-hate-between-msvc-and-crt

No comments: