Attempted to read or write protected memory In Arabic Language

Discussions about OCR & MICR support in GdPicture.
Post Reply
sadegi
Posts: 2
Joined: Wed Apr 10, 2019 4:48 pm

Attempted to read or write protected memory In Arabic Language

Post by sadegi » Wed Apr 10, 2019 4:57 pm

hi . i have problem with your ocr app in sample folder . when i compile and run it and select Arabic language the app immediately closed
in debug mode problem was appeared in code " _document.OcrResultId = _gdPictureOcr.RunOCR()"
it say Attempted to read or write protected memory
i test Persian language and same problem (probably in other unicode languages)
but in English we have no problem

Code: Select all

private void StartOCR(int roiLeft, int roiTop, int roiWidth, int roiHeight)
        {
            SetOcrParameters(roiLeft, roiTop, roiWidth, roiHeight);
            Cursor.Current = Cursors.WaitCursor;
            Stopwatch stopWatch = new Stopwatch();
            stopWatch.Start();
            _document.OcrResultId = _gdPictureOcr.RunOCR();            <====== Booom
            stopWatch.Stop();
            if (_gdPictureOcr.GetStat() == GdPictureStatus.OK)
            {
                this.Text = InitialText + " - Elapsed: " + stopWatch.Elapsed.ToString() + ". Average confidence: " + _gdPictureOcr.GetAverageWordConfidence(_document.OcrResultId) + " %";

            }
            else
            {
                this.Text = InitialText;
            }
            Cursor.Current = Cursors.Default;

            UpdateControlsOcrResultCreated();
        }

Gabriela
Posts: 378
Joined: Wed Nov 22, 2017 9:52 am

Re: Attempted to read or write protected memory In Arabic Language

Post by Gabriela » Thu Apr 11, 2019 8:40 am

Hello,

Thank you for reporting this. I've replicated the issue and transmitted it to the development team right now. We will keep you updated.
Kind regards,

Gabriela
GdPicture Team

sadegi
Posts: 2
Joined: Wed Apr 10, 2019 4:48 pm

Re: Attempted to read or write protected memory In Arabic Language

Post by sadegi » Wed Apr 17, 2019 8:40 pm

Same problem in v14.1.15
just test OCR sample in "\GdPicture.NET 14\Samples\Bin\OCR.exe" and when select arabic language in application and press "Read page" button , app closed immediately

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests