Page 1 of 1

Attempted to read or write protected memory

Posted: Mon Feb 07, 2011 3:38 pm
by jacok
Hi there,

We are getting the above error, specifically "Attempted to read or write protected memory. This is often an indication that other memory is corrupt."

This is when we try to do barcode recognition as per the following code snippet:

string curFile = "c:\\test.tif";
ArrayList arBarcodes = new ArrayList();
int iImg = gdImaging1.CreateGdPictureImageFromFile(curFile);
gdImaging1.Barcode1DReaderDoScan(iImg, Barcode1DReaderScanMode.BestQuality);
for (int i = 1; i <= gdImaging1.Barcode1DReaderGetBarcodeCount(); i++)
{ arBarcodes.Add(gdImaging1.Barcode1DReaderGetBarcodeValue(i)); }

We are running the current version of GdPicture.NET on VS2008 with all updates and service packs installed. The purpose of this application is to run through thousands of .tif files and take action depending on any barcodes found in the files. I would estimate around one in 10000 files cause this error.

Thank you in advance for your help. Let me know if you need a file that causes this error.

Re: Attempted to read or write protected memory

Posted: Mon Feb 07, 2011 4:32 pm
by Loïc
Hi,

Please send the file + a code snippet which reproduce the error at https://www.gdpicture.com/support/getting-support-from-our-team

We should fix the problem quickly.

Kind regards,

Loïc

Re: Attempted to read or write protected memory

Posted: Tue Feb 08, 2011 8:44 am
by jacok
Thank you very much Loïc,

Done, ticket id is 8861.

Jaco

Re: Attempted to read or write protected memory

Posted: Wed Feb 09, 2011 9:42 am
by jacok
Thank you so much for the quick resolution of this problem Loïc,

The support I have received so far has been great!

Jaco

Re: Attempted to read or write protected memory

Posted: Thu Feb 10, 2011 4:28 pm
by Loïc
Thank you very much for the public feedback Jaco :)

Loïc

Re: Attempted to read or write protected memory

Posted: Tue Aug 30, 2011 7:34 am
by ganeshj
Loic,

We are facing exactly the same problem. Can you let me know what the issue could be.

Regards
Ganesh

Re: Attempted to read or write protected memory

Posted: Tue Aug 30, 2011 7:35 am
by Loïc
Hi,

Please check you are using latest version.

If the problem still exists: send the file + a code snippet which reproduce the error at https://www.gdpicture.com/support/getting-support-from-our-team

Kind regards,

Loïc

Re: Attempted to read or write protected memory

Posted: Mon Mar 25, 2013 4:26 am
by vishalkb
Hi Guys,

We are having the same issue. Can you please tell me what the fix for this issue is? I see that it has been resolved for another user.

Regards

Re: Attempted to read or write protected memory

Posted: Mon Mar 25, 2013 7:12 pm
by Loïc
Hello,

Please see answer above:
Please check you are using latest version.

If the problem still exists: send the file + a code snippet which reproduce the error at https://www.gdpicture.com/support/getting-support-from-our-team