c# - WCF Teseract error: Attempted to read or write protected memory... on exe works fine -


i use teseract v2 ocr image, it's work fine in exe, when try on wcf everythime exception:

attempted read or write protected memory. indication other memory has been corrupted.

the same code on exe (work) , wcf (exception):

var processor = new tesseractprocessor();  processor.setvariable("tessedit_char_whitelist", metadata.textregexpattern); processor.init(@"../../tessdata/" + language + ".traineddata", language, 3); processor.setpagesegmode(_pagesegmentationmode); processor.analyselayout(source);  return processor.recognize(image.fromfile(filepath)); // here's problem recognize method 


Popular posts from this blog

Php - Delimiter must not be alphanumeric or backslash -

c# - How to change the "Applies To" field under folder auditing options programatically (.NET) -

c++ - Ambiguity when using boost::assign::list_of to construct a std::vector -