No barecode recognition on server x64 and 1 barecode on x86

Discussions about 1D barcode reading and writing
Post Reply
bmsengin
Posts: 5
Joined: Thu Jun 27, 2013 4:25 pm

No barecode recognition on server x64 and 1 barecode on x86

Post by bmsengin » Wed Aug 28, 2013 11:01 am

Hi,

I have the same application in C# : one on my desktop with windows 7 x86 and an other on a server x64. Application is compiled with option "Any CPU" and all library are in the application folder :

GdPicture.NET.9.barcode.1d.reader.64.dll
GdPicture.NET.9.barcode.1d.reader.dll
GdPicture.NET.9.barcode.1d.writer.dll
GdPicture.NET.9.dll
GdPicture.NET.9.filters.64.dll
GdPicture.NET.9.filters.dll
GdPicture.NET.9.image.gdimgplug.64.dll
GdPicture.NET.9.image.gdimgplug.dll
GdPicture.NET.9.ocr.tesseract.3.64.dll
GdPicture.NET.9.ocr.tesseract.3.dll
GdPicture.NET.9.PDF.dll

The code is very simple :

Code: Select all

                    GdPicturePDF oGdPicturePDF = new GdPicturePDF();
                    if (oGdPicturePDF.LoadFromFile(f, false) == GdPictureStatus.OK)
                    {
                        for (int numeroPage = 1; numeroPage <= oGdPicturePDF.GetPageCount(); numeroPage++)
                        {
                            oGdPicturePDF.SelectPage(numeroPage);
                            int ImageID = oGdPicturePDF.RenderPageToGdPictureImage(200, true);
                            if (ImageID != 0)
                            {
                                GdPictureImaging oGdPictureImaging = new GdPictureImaging();
                                oGdPictureImaging.Barcode1DReaderDoScan(ImageID, Barcode1DReaderScanMode.BestQuality, Barcode1DReaderType.Barcode1DReaderCode39, false, 1);
                                LogUtils.Trace("    + Nombre de codes barre : " + oGdPictureImaging.Barcode1DReaderGetBarcodeCount());
                            }
                        }
                    }
On my desktop, one barcode is detected (it's correct) but on the server no barcode is detected ...

Could you help me please.

Regards,
Gilles

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

Re: No barecode recognition on server x64 and 1 barecode on

Post by SamiKharma » Thu Aug 29, 2013 10:33 am

Hi,

I need you to cross check a couple of things:
1. That the dlls used on your desktop are the exact same ones used on the server machine. If your desktop is a development machine, please check that the dlls that are used by the servers are the same as the ones in the Redist folder in your GdPicture directory.
2. The return codes from the functions you are using, it is exiting because no image is rendered? No barcode found? An error occurs?

Best,
Sami

bmsengin
Posts: 5
Joined: Thu Jun 27, 2013 4:25 pm

Re: No barecode recognition on server x64 and 1 barecode on

Post by bmsengin » Thu Aug 29, 2013 4:30 pm

Hi,

Thanks for you answer but :
1. All version of the .dlls useds are exactly the same between my Desktop and the Server and the redist folder on GDPicture
2. No error, all code is executed successfully but the result is not the same : one barcode and my desktop and zero barcode on the server

Please help .....

Regards,
Gilles

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest