I'm working on the code below and I've run into a conflict between two processes accessing the same image file located at 'source'. I would appreciate any suggestions. I keep receiving the error message:
"because it is being used by another process." on the lines:
myBitmapImage.UriSource = new Uri(@image,UriKind.RelativeOrAbsolute);
public void InitializeMODI(string source)
string strText = "";
System.Windows.Controls.Label progressLbl = new System.Windows.Controls.Label();
// Instantiate the MODI.Document object
MODI.Document md = new MODI.Document();
md.OnOCRProgress += new MODI._IDocumentEvents_OnOCRProgressEventHandler(this.ShowProgress);
// The Create method grabs the picture from
// disk snd prepares for OCR.
// Do the OCR.
md.OCR(MODI.MiLANGUAGES.miLANG_ENGLISH, true, true);
// Get the first (and only image)
MODI.Image image = (MODI.Image)md.Images;
// Get the layout.
MODI.Layout layout = image.Layout;
// Loop through the words
View Complete Post