Solved

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

Posted on 2008-06-26
6
240 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
How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

 
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

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.
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

747 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now