Solved

Problem with 3rd party barcode scanning control on Windows CE 4.0 device

Posted on 2008-06-26
6
246 Views
Last Modified: 2013-12-27
I've developed an application for a Datalogic handheld scanning device using VB on the .NET 1.1 compact framework.

The application works fine all except for 1 form where the user has to scan multiple barcodes.

After a whille the barcode reading laser will either not appear or the laser will appear and read the barcode but the "barcode read" event won't fire.

I have tried placing the Datalogic control on the form, creating the control each time on the fly, activating and deactivating the control after each scan, keeping the control active for each scan but nothing works.

Looking at the memory allocated, the control appears to be grabbing a large chunk of memory with each scan until scanning eventually freezes.

The only thing I can think of to do is to unload and reload the form with each scan but this will completely ruin the flow of the application.

Has anyone come across anything remotely like this as I am out of ideas?

I've contacted Datalogic a number of times but they haven't been any help so far. The control peforms fine in the test rig I've written, it just doesn't work in this part of the application.
0
Comment
Question by:rd707
  • 3
  • 2
6 Comments
 
LVL 11

Expert Comment

by:Babycorn-Starfish
ID: 21877904
Have you actually ascertained why it's failing?
0
 
LVL 4

Author Comment

by:rd707
ID: 21878034
No exceptions are raised unfortunately, it just stops scanning after a while.
0
 
LVL 11

Expert Comment

by:Babycorn-Starfish
ID: 21881783
Is it possbible to do a Garbage Collect after each scan to try and release the memory its been hogging?
0
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 
LVL 4

Author Comment

by:rd707
ID: 21881800
A garbage collection stops the scanner control working altogether which is a neat trick if you know how... :-/

At the moment, I'm having a go at scrapping all the scanning controls on each of the forms and having one across the whole application. I'll let you know how I get on.
0
 
LVL 10

Expert Comment

by:Marcjev
ID: 21890663
I'm using a windows CE 5.0 device of datalogic and found that the only way i could use multiple controls, is to disable the scanner and then call the 'DeInit' routine of the Laser (ScanEngine).
0
 
LVL 4

Accepted Solution

by:
rd707 earned 0 total points
ID: 21892180
I think I tried that too. I've moved to a single instance now so I'll have to see on Monday how things went in the warehouse over the weekend.
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
SqlDependency to get update from sql to my c# app 2 41
Moving code from one TFS branch to another 3 25
SQL LINE CONTINUATION ISSUE 12 33
cannot connect to sqlserver 8 29
I recently asked a question (http://www.experts-exchange.com/Programming/Smartphones/Android/Q_28684946.html) about Computer Inventory applications for Mobile Devices.  I was specifically interested in an app I could use on my android phone.  The be…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question