Sicos1977 / TesseractOCR

A .net library to work with Google's Tesseract
169 stars 22 forks source link

Words.IsValid AccessViolationException #49

Closed Ephron-WL closed 10 months ago

Ephron-WL commented 10 months ago

I'm using the current version of the library on Windows 11 x64.

In trying to observe the Visual Studio Locals window, which iterates the properties of the type using reflection, a AccessViolationException is thrown and a developer is unable to evaluate the properties of the object. I have narrowed this down to the evaluation of Words.IsValid. I'm not sure why this occurring. I think it has to do with tesseract.Dict.valid_word.

Sicos1977 commented 10 months ago

I don't think I can do anything about this. The code is a wrapper over a C++ DLL and if for some reason that fails it is probably because it is hosted inside the visual studio process. You can check if the signature for the C++ DLL is correct and if so I see no way to solve this problem.

Ephron-WL commented 10 months ago

Do you see this same issue or is it just me? If it is just my problem then you can close this comment. If you have the same problem then I'd consider removing the property altogether to avoid this issue or through a NotImplementExceptionwith an explanation why. Maybe the feature cannot be reliably provided via the unmanaged library. Anyway, thanks for your response.