[Visual DataFlex] OMRDetectMarks -> Access Violation

Discussions about GdPicture.NET usage in non managed applications built in vb6, Delphi, vfp, MFC c++ etc...
Post Reply
Matthias
Posts: 2
Joined: Tue Sep 04, 2012 4:22 pm

[Visual DataFlex] OMRDetectMarks -> Access Violation

Post by Matthias » Tue Sep 04, 2012 5:21 pm

Hi,
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

Matthias
Attachments
OMRScan.zip
Visual DataFlex OMR Test Workspace
(214.48 KiB) Downloaded 150 times

SamiKharma
Posts: 352
Joined: Tue Sep 27, 2011 11:47 am

Re: [Visual DataFlex] OMRDetectMarks -> Access Violation

Post by SamiKharma » Wed Sep 05, 2012 9:14 am

Hi,

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.

Best,
Sami

Matthias
Posts: 2
Joined: Tue Sep 04, 2012 4:22 pm

Re: [Visual DataFlex] OMRDetectMarks -> Access Violation

Post by Matthias » Thu Sep 06, 2012 2:02 pm

Thanks Sami, it worked like a charm :D

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest