Page 1 of 1

[Visual DataFlex] OMRDetectMarks -> Access Violation

Posted: Tue Sep 04, 2012 5:21 pm
by Matthias
we are starting to use GdPicture.NET9 mainly for scanning and OCR/OMR purposes in Visual DataFlex.

Scanning and OCR was no real Problem, but with OMR detection, there seems to be something going wrong.

When trying to use the OMRDetectMarks function (the one with the Parameters Integer, Rectangle[], Integer) the definition of the rectangle array parameter causes an Access Violation ( (0xc0000005) at address 0x100CBB91 while reading from address 0x00000000 ).

I've appended a zip-file with a testing workspace for the OMR recognition, where the access violation can be seen.

Also it looks like the OMRDetectMarks Method (Integer, Integer, Integer, Double, Integer, Boolean) doesn't exist in the com component we got here.

Kind regards


Re: [Visual DataFlex] OMRDetectMarks -> Access Violation

Posted: Wed Sep 05, 2012 9:14 am
by SamiKharma

The rectangle objects belong to the .NET framework, that is why you are not able to use them.
You need to use the Integer overload: OMRDetectMarks_5
Just download the latest and you should have it.

There will also be an improvement on the OMR (internal for accuracy) in the 9.2 release which should be available within 1-2 weeks.


Re: [Visual DataFlex] OMRDetectMarks -> Access Violation

Posted: Thu Sep 06, 2012 2:02 pm
by Matthias
Thanks Sami, it worked like a charm :D