当我尝试调试这个简单的代码时,我收到一个名为“堆损坏”的错误,
CvCapture* capture = cvCaptureFromFile("1.avi");
if( capture )
{
cvNamedWindow( "Motion", 1 );
while(true)
{
//Grab the frame and display the image
//No need of this, because error is coming in the cvCaptureFromFile("1.avi");
}
}
但实际问题是,如果我尝试运行代码的 .exe(调试输出)(而不是通过 vs2005),则不会出现该错误。谁能帮我解决这个问题?谢谢...