barcode reader bug with sp2

  • Thread starter Thread starter Sergio Bastos
  • Start date Start date
S

Sergio Bastos

Hello Everyone,
I've just upgraded my application to use the newly released sp2.
However, this has induced a weird bug into the app. My pda has a
barcode reader that is able to input a scanned barcode directly into
my textboxes. With the sp2 release, the text no longer is inputted
into the textboxes although the reader scans correctly the barcode.
I tried capturing all key events on a test textbox, and the only event
that is triggered is a keyevent where the KeyEventArgs is set to
"None". (i.e. the event has not been associated with any key)?
Does anybody have any solutions into this problem?
Thanks,
Sergio S Bastos
 
That sounds more like a disconnect in the 'wedging' software for the reader.
Does it work with text boxes displayed by other programs (Pocket Word?
Internet Explorer's address bar?)

Paul T.
 
I works just fine through IE's address bar. Although sometimes there's
a problem where the scanner does not read the last digit from certain
barcodes. But I highly doubt that has anything to do with this bug.
Sergio Bastos
 
OK, then we can focus on the CF again. Make sure that the text box you are
trying to enter the text to is just a plain, generic text box *and* make
doubly sure that it has the focus. You aren't trying to capture any
keystrokes for special processing or anything, right?

If that all seems to work, your next best move might be to use the Remote
Spy++ tool from eMbedded Visual C++ to see what messages are being sent by
the OS to the text box and to its parent form. Something there might give
us a hint.

Paul T.
 
Well, I already did the textbox test. I created a simple form with a
plain textbox and registered 3 events for it--keyup, keydown, keypress.
Each one shows a messagebox on triggered.
So what happens is this. When I scan in a barcode a keypress event does
occur. But in that keypress event no keydata has been associated with
it.
Hum, I don't have eMbedded Visual C++ installed, and I doubt I'll get
permission to install it in the computer I work at.
Should I try the sp1 release and see if that release has also been
affected by this bug?
Sergio S Bastos
OK, then we can focus on the CF again. Make sure that the text box you are
trying to enter the text to is just a plain, generic text box *and* make
doubly sure that it has the focus. You aren't trying to capture any
keystrokes for special processing or anything, right?
 
Try *not* associating anything with the key events and see whether the data
from the scan is placed there or not.

Hmmm. Can't have the best tools (free, too), to do your job well?
Interesting... If you can't do anything else, except for the item above,
yes, try SP1.

Paul T.
 
Ok, I simplified the test program I had even more. I removed all key
event handling. I even removed the menu control in the form as it was
doing nothing. Nothing happened...
So I made the switch to sp1--program now works fine.
I guess I'll have to stick to sp1, until this bug gets fixed or a
workaround is produced.
Sergio S Bastos
Try *not* associating anything with the key events and see whether the data
from the scan is placed there or not.
 
Hi Sergio,

I've looked over our changes for SP2 and I don't see anything obvious that
would have caused this change. Can you describe the barcode reader you're
using a bit more. Is it possible for us to get one of these to test? Am I
correct to assume that in addition to not getting key events, you don't see
text in your textbox either?

Thanks,
-Katie

This posting is provided "AS IS" with no warranties, and confers no rights.

***.Net Compact Framework Info***
Faq:
http://msdn.microsoft.com/mobility/prodtechinfo/devtools/netcf/FAQ/default.a
spx
QuickStarts: http://samples.gotdotnet.com/quickstart/CompactFramework/
Samples:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetcomp/h
tml/CompactfxTechArt.asp

--------------------
| From: (e-mail address removed) (Sergio Bastos)
| Newsgroups: microsoft.public.dotnet.framework.compactframework
| Subject: barcode reader bug with sp2
| Date: 15 Jan 2004 10:33:59 -0800
| Organization: http://groups.google.com
| Lines: 12
| Message-ID: <[email protected]>
| NNTP-Posting-Host: 212.113.164.101
| Content-Type: text/plain; charset=ISO-8859-1
| Content-Transfer-Encoding: 8bit
| X-Trace: posting.google.com 1074191639 30869 127.0.0.1 (15 Jan 2004
18:33:59 GMT)
| X-Complaints-To: (e-mail address removed)
| NNTP-Posting-Date: Thu, 15 Jan 2004 18:33:59 +0000 (UTC)
| Path: cpmsftngxa07.phx.gbl!cpmsftngxa06.phx.gbl
| Xref: cpmsftngxa07.phx.gbl
microsoft.public.dotnet.framework.compactframework:43284
| X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
|
| Hello Everyone,
| I've just upgraded my application to use the newly released sp2.
| However, this has induced a weird bug into the app. My pda has a
| barcode reader that is able to input a scanned barcode directly into
| my textboxes. With the sp2 release, the text no longer is inputted
| into the textboxes although the reader scans correctly the barcode.
| I tried capturing all key events on a test textbox, and the only event
| that is triggered is a keyevent where the KeyEventArgs is set to
| "None". (i.e. the event has not been associated with any key)?
| Does anybody have any solutions into this problem?
| Thanks,
| Sergio S Bastos
|
 
Back
Top