asked on November 5, 2014
I am trying to dispose of the OCR engine from memory because it is causing my application to throw out of memory exceptions, see the below live chat for more information.
[Hunter Nelson] Is there any way to dispose of OCR memory in Document Processor
[Jason Rothenberg] Hey Hunter
[Hunter Nelson] So a little bit more detail about my problem. I am working on an application that repeatedly calls the OCRMarkedPages method. Like 1000s of times called
[Hunter Nelson] I have discovered that each time this method is called it adds about 300-500 kb of memory to the application
[Hunter Nelson] In Document Processor there does not seem to be a way to .Dispose() the OCR engine and its resources as there are for many other objects
[Hunter Nelson] So I cannot release the memory that the OCR engine takes up
[Hunter Nelson] This is a problem because it is causing my application to eventually run out of memory
[Hunter Nelson] I did however notice that in repository access there was a .close() method
[Hunter Nelson] In RA the .close method "Shuts down the OCR engine and frees all allocated resources. "
[Hunter Nelson] I am using LFSO and Document Processor though
[Hunter Nelson] is this available using these LFSO and Document Processor?
[Hunter Nelson] I have looked through the Document Processor documentation and tried looking through the visual studio type intellisense and I don't see anything that would allow me to release the memory.
[Jason Rothenberg] I believe you can with LFSO
[Jason Rothenberg] Let me look up what the call is
[Jason Rothenberg] hmm I cant find anything in the help files
[Hunter Nelson] I've looked through the help files
[Jason Rothenberg] and come to think of it, Im not sure if this is expected behavior
[Jason Rothenberg] go ahead and post the question to Answers, that way the developers can provide an answer if it is possible, or take action if this is not intended behavior
0
0