2007年6月20日星期三

Debug Error! HEAP CORRUPTION DETECTED: before Normal block...


Debug Error!

Program: ...

HEAP CORRUPTION DETECTED: before Normal block(#-1840241472) at 0x004E1550.
CRT detected that the application wrote to memory before start of heap buffer.


Correct the usage of b[-1].

还是动态分配内存的问题,但是用MSVC或Microsoft Visual C++ Express,报错的地方为
delete[] a;
但是,最终找到的出错的地方并不一定和a有关系,错误是另一个动态分配的数组调用时使用了 b[-1],所以上面的错误是 "before Normal..."

2 条评论:

Rodrigo 说...

Oi, achei teu blog pelo google tá bem interessante gostei desse post. Quando der dá uma passada pelo meu blog, é sobre camisetas personalizadas, mostra passo a passo como criar uma camiseta personalizada bem maneira. Até mais.

匿名 说...

Glance up the scanner's handbook for coding definitions. We ended up not able to get all supported sensors (PIDs) to show data.

Here is my website ... http://articleshubsite.com/641566/top-rated-highquality-obd2-scanners/