郁闷,不能release image
Unhandled exception at 0x7c901230 in Prog1.exe: User breakpoint
程序停在free.c的return HeapAlloc(_crtheap, 0, size);这一行
如果ignore,and continue,则会碰到
Insufficient memory (Out of memory) in function cvAlloc, .\cxalloc.cpp(111)
….
搞了快6个小时才发现,image循环的for loop写错了,写成了
for(int i = 0; i < src->widthStep; i ++)
这样image的数据就写出届了,搞得image的data crash了,因而不能release。还好现在都搞定了,只用了0.2s,删掉了4个字母。