文件被另一进程访问

System.Drawing.Bitmap bmp = null;

 MODIOCR.MODI md = null;

bmp = new System.Drawing.Bitmap(tempImage);

 MODIOCR.MODI md = null;

tiffPath = AppDomain.CurrentDomain.BaseDirectory + C_TEMP_Tiff + ".tiff";
                image = bmp.GetThumbnailImage((int)width, (int)height, null, IntPtr.Zero);
                image.Save(tiffPath, ImageFormat.Tiff);
                md.ocr(tiffPath, ayLanguageList);

bmp.Dispose();
                image.Dispose();
                md = null;
                GC.Collect();

File.Delete(tiffPath)//这句执行出错:提示文件被另一进城访问


ibeautiful
浏览 595回答 2
2回答

白猪掌柜的

你的文件是不是被打开或者在进行操作?
打开App,查看更多内容
随时随地看视频慕课网APP