Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2008-06-26
6
Medium Priority
?
263 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
Microsoft Certification Exam 74-409

VeeamĀ® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 
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

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

Question has a verified solution.

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

A short article about problems I had with the new location API and permissions in Marshmallow
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
Loops Section Overview
Suggested Courses

885 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