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)//這句執(zhí)行出錯(cuò):提示文件被另一進(jìn)城訪問
文件被另一進(jìn)程訪問
ibeautiful
2018-08-21 09:06:08