Page 1 of 1

Attempted to read or write protected memory In Arabic Language

Posted: Wed Apr 10, 2019 4:57 pm
by sadegi
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();
        }

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

Posted: Thu Apr 11, 2019 8:40 am
by Gabriela
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.

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

Posted: Wed Apr 17, 2019 8:40 pm
by sadegi
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

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

Posted: Thu May 02, 2019 1:42 pm
by sadegi
It's nearly a month after the problem is reported And the two new versions of the program are released But the problem remains

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

Posted: Thu May 02, 2019 4:02 pm
by Gabriela
Hi,

We are sorry for that, the issue is still reported. I have increased a priority, but unfortunately, I cannot say more now. I will update you immediatelly if I will have more details. Thank you for your patience.

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

Posted: Wed May 08, 2019 9:41 pm
by Gabriela
Hi,

We have published a new minor release 14.1.18 that contains the fix for your issue.
You can download it here: https://www.gdpicture.com/download-gdpicture/.
Kindly let us know if the issue is solved. Thank you.