在backgroundWorker c ++
中没有使用cvReleaseImage来清理内存IplImage* image2 = NULL;
image2 = cvCreateImage(cvSize(frame1.cols, frame1.rows), 8, 3);
IplImage ipltemp = frame1;
cvCopy(&ipltemp, image2);
pictureBox_frame->Image = gcnew //replacement of cvShowIma
System::Drawing::Bitmap(image2->width, image2->height, image2->widthStep,
System::Drawing::Imaging::PixelFormat::Format24bppRgb, (System::IntPtr)image2->imageData);
**cvReleaseImage(&image2);**