Welcome to LEAD Support Forum Login | Register | Faq  

    LEAD Support Forum
  Resource to find answers and post technical questions about LEAD products.
Search    
   

Re: -2146233088 - Invalid Parameter Passed
Started by modonnell at 09-17-2008 12:11. Topic has 6 replies.

Print Search « Previous Thread Next Thread »
  09-17-2008, 12:11
modonnell is not online. Last active: 9/26/2008 3:59:28 PM modonnell

Top 500 Posts
Joined on 07-07-2008
Posts 11
-2146233088 - Invalid Parameter Passed
Reply Quote

Hello,

   I writing a VB6 application (we are migrating to .NET) to scann images for ID barcodes and roughly 1 out of 10 images gives either the above error or "-2147467261 Attempted to read or write protected memory. Possibly indicated corrupted memory..."

My code is as below

am I doing anything obviously silly ?

thanks

Martin

 

Call IsLocked(RasterSupportType_Barcodes1D)

Set m_oBarCodeEngine = New BarcodeEngine

' Initialize linear barcodes

Call m_oBarCodeEngine.Startup(BarcodeMajorTypeFlags_Barcodes1d)

Set m_oImage = m_RASCodecs.Load_12(sFilename)

If m_oBarCodeEngine Is Nothing Then

Err.Raise 1001, "", "Barcode engine has not been initialised yet"

End If

Set oBarCode1D = New Barcode1d

Set oBarCodePDF = New BarcodeReadPdf

Set oBarColor = New BarcodeColor

Set oRect = New Rectangle

oRect.Height = 0

oRect.Width = 0

oRect.X = 0

oRect.Y = 0

oBarCode1D.Direction = BarcodeDirectionFlags_LeftToRight Or BarcodeDirectionFlags_Horizontal Or BarcodeDirectionFlags_TopToBottom Or BarcodeDirectionFlags_BottomToTop

oBarCode1D.ErrorCheck = True

oBarCode1D.Granularity = 9

oBarCode1D.WhiteLines = 3

oBarCode1D.MinimumLength = 1

oBarCode1D.MaximumLength = 255

oBarCode1D.StandardFlags = Barcode1dStandardFlags_Barcode1dNormal

m_oBarCodeEngine.ReadBarcode1dSearchType = Barcode1dSearchTypeFlags_Barcode1dReadAnyType

Call m_oBarCodeEngine.Read(m_oImage, oRect, _

BarcodeUnit_ScanlinesPerPixels, _

BarcodeReadFlags_None, _

10, oBarCode1D, oBarCodePDF, oBarColor)

Set oBarcodes = New Collection

For X = 1 To m_oBarCodeEngine.BarcodeDataCount

Set oBarCode = New cBarcode

Set oBarCodeData = m_oBarCodeEngine.BarcodeData.Item(X - 1)

sBarCode = ""

For Y = 1 To oBarCodeData.DataCount

sBarCode = sBarCode & Chr(oBarCodeData.data.Item(Y - 1))

Next Y

oBarCode.BarcodeType = CStr(oBarCodeData.SearchType)

oBarCode.BarcodeData = sBarCode

Call oBarcodes.Add(oBarCode, CStr(X))

Next X

Call m_oImage.Dispose

Set m_oImage = Nothing

 


   Report 
  09-18-2008, 2:45
Maen Hasan is not online. Last active: 12/30/2008 4:32:47 PM Maen Hasan



Top 10 Posts
Joined on 08-05-2004
Posts 1,876
Re: -2146233088 - Invalid Parameter Passed
Reply Quote
Martin,

What is the LEADTOOLS version (v14, v14.5, v15, etc.) that you use?

Please enclose your code in a small working project (not your full application) and send it with a sample image that demonstrates the problem.

Note: When you want to attach any files, please put them all in ZIP or RAR file. Also, don't use preview when you have attachment.
If you have any problem in attaching files to the forum, you can send the files in a ZIP of RAR file to support@leadtools.com. Don't forget to mention this forum post in your email to support.

Thanks,
Maen Badwan
LEADTOOLS Technical Support

   Report 
  09-26-2008, 11:09
modonnell is not online. Last active: 9/26/2008 3:59:28 PM modonnell

Top 500 Posts
Joined on 07-07-2008
Posts 11
Re: -2146233088 - Invalid Parameter Passed

Attachment: ~000006.zip
Reply Quote

Hello Maen,

   sorry for not replying to you ealier, I've only got back to the office today. We're using LEAD Tools 15

Regarding the problem it's only happening on one machine which is old and the client has agreed to replace so I'm going to hope it goes away

--

Regaring a different problem I'm having, I attach an image with a bar code which LEAD Tools 15 doesn't seem to like

It gets back the bar code alright but appends "z " onto the end of it - is there any other processing I can do - using the Barcode demo program I have Barcode Read Options have for Standard 1D speed set to normal, Direction both Horizontal and Vertical, Partial Read (Markers) and all types set and it brings back "XX EN10000015484Iz " instead of "XX EN10000015484" 

If i turned partial read (markers) off, it didn't find any bar code at all

thanks

Martin

 

 

 


   Report 
  09-28-2008, 10:00
Maen Hasan is not online. Last active: 12/30/2008 4:32:47 PM Maen Hasan



Top 10 Posts
Joined on 08-05-2004
Posts 1,876
Re: -2146233088 - Invalid Parameter Passed
Reply Quote
Martin,

About the Barcode issue, I checked this issue on my side and noticed the problem when reading the barcode. I reported this issue to our engineers under incident number 7355AMN, so that they can investigate more about this issue.
I will update you with the status when I receive new information from our engineers.

Thanks,
Maen Badwan
LEADTOOLS Technical Support

   Report 
  09-29-2008, 4:16
modonnell is not online. Last active: 9/26/2008 3:59:28 PM modonnell

Top 500 Posts
Joined on 07-07-2008
Posts 11
Re: -2146233088 - Invalid Parameter Passed
Reply Quote

Ok Maen, thanks for the response, will await your update

Martin

 

   


   Report 
  10-19-2008, 8:45
Maen Hasan is not online. Last active: 12/30/2008 4:32:47 PM Maen Hasan



Top 10 Posts
Joined on 08-05-2004
Posts 1,876
Re: -2146233088 - Invalid Parameter Passed
Reply Quote
Martin,

About incident number 7355AMN, our engineers marked this incident as Not a Bug, because the barcode does not follow code 128 standard. It is missing the end code so that "partial read" option reads all data and returns it. The extra character is the check digit character but since this code does not follow code 128 standard, "partial read" does not removed it.

Thanks,
Maen Badwan
LEADTOOLS Technical Support

   Report 
  11-10-2008, 4:58
modonnell is not online. Last active: 9/26/2008 3:59:28 PM modonnell

Top 500 Posts
Joined on 07-07-2008
Posts 11
Re: -2146233088 - Invalid Parameter Passed
Reply Quote

Ok, Maen

   thanks very much for that - I will go back to our client and get them to verify how they generated these bar codes in the first place.

thanks

Martin 


   Report 
Post
LEAD Support Fo... » LEAD/Axtel Barc... » Barcode » Re: -2146233088 - Invalid Parameter Passed

Powered by Community Server, by Telligent Systems