Welcome to LEAD Support Forum Login | Register | Faq  

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

Re: Application is handing
Started by sojanm at 01-24-2008 6:37. Topic has 1 replies.

Print Search « Previous Thread Next Thread »
  01-24-2008, 6:37
sojanm is not online. Last active: 1/24/2008 11:27:55 AM sojanm

Not Ranked
Joined on 01-24-2008
Posts 1
Application is handing
Reply Quote

Hello,

I am using  Lead Tools 14.0

I am using the LEADBarCode ocx to read the barcode for the batch scanner.

I user the following code

-----------------------------

private AxLTBARLib.AxLEADBarCode MyBarCode;

COLOREDIMAGE.Bitmap = 0;

COLOREDIMAGE.Load(coloredPath, 24, 1, 1);

COLOREDIMAGE.Sharpen((short)PIC_SHARPEN);

if (!readColored)

{

COLOREDIMAGE.ColorRes(1, (int)LEADLib.ColorResPaletteConstants.CRP_FIXEDPALETTE, (int)LEADLib.ColorResDitherConstants.CRD_NODITHERING, 0);

}

MyBarCode.EnableUseRegion = false;

MyBarCode.EnableUseColors = false;

MyBarCode.Bitmap = COLOREDIMAGE.Bitmap;

MyBarCode.ReadFlags = 0;

MyBarCode.Units = (int)tagBARCODE_UNITS.BARCODE_SCANLINES_PER_PIXELS;

MyBarCode.PDFRead.Direction = 255;//(int)tagBARCODE_DIRECTION.BARCODE_DIR_LEFT_TO_RIGHT;

int ret = MyBarCode.Read((int)tagBARCODE_PDF_TYPES.BARCODE_PDF417, 1,

0, 0,

0, 0);

if (ret == 0)

{

string dt = MyBarCode.get_BarCodeData(0).Data;

......

-----------------

The problem is the function MyBarCode.Read is not respoding sometimes, after control passed to the function it will not respond with any data but just hang. Do you any solution for this or what is the reason. If it happens I have close and start the application again.


   Report 
  01-27-2008, 4:18
Maen Hasan is not online. Last active: 8/14/2008 8:56:49 AM Maen Hasan



Top 10 Posts
Joined on 08-05-2004
Posts 1,715
Re: Application is handing
Reply Quote
Hello,

What is the build number (file version) of the ltbar14n.dll and ltkrn14n.dll files on your system32 folder?

Thanks,
Maen Badwan
LEADTOOLS Technical Support
   Report 
Post
LEAD Support Fo... » LEAD/Axtel Barc... » Barcode » Re: Application is handing

Powered by Community Server, by Telligent Systems