S
Scott Kappele
I'm using a MODI reference in my VB .Net 2003 project, creating an MODI
document object instance and using the .Create("myfilename.tif") method to
load the document with a single image from a tiff file. After OCRing the
text, I call the close method.
Problem is that MODI doesnt appear to release the file lock until the
application closes, and i need to reuse the file name.
dim myMODI as MODI.Document
myMODI = New MODI.Document
myMODI.Create("c:\testfile.tif")
myMODI.OCR()
{ does some work looking at the words in the myMODI.Images(0).Layout.Text
property }
myMODI.Close(False)
myMODI = nothing
Kill ("c:\testfile.tif")
The kill statement fails saying that another program has the file open.
How can i get MODI to let go of the file?
Any help is appreciated.
document object instance and using the .Create("myfilename.tif") method to
load the document with a single image from a tiff file. After OCRing the
text, I call the close method.
Problem is that MODI doesnt appear to release the file lock until the
application closes, and i need to reuse the file name.
dim myMODI as MODI.Document
myMODI = New MODI.Document
myMODI.Create("c:\testfile.tif")
myMODI.OCR()
{ does some work looking at the words in the myMODI.Images(0).Layout.Text
property }
myMODI.Close(False)
myMODI = nothing
Kill ("c:\testfile.tif")
The kill statement fails saying that another program has the file open.
How can i get MODI to let go of the file?
Any help is appreciated.