Attempted to read or write protected memory In Arabic Language

Discussions about OCR & MICR support in GdPicture.
Post Reply
sadegi
Posts: 3
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: 414
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: 3
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

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

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

Post by sadegi » Thu May 02, 2019 1:42 pm

It's nearly a month after the problem is reported And the two new versions of the program are released But the problem remains

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

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

Post by Gabriela » Thu May 02, 2019 4:02 pm

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.
Kind regards,

Gabriela
GdPicture Team

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

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

Post by Gabriela » Wed May 08, 2019 9:41 pm

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.
Kind regards,

Gabriela
GdPicture Team

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest