I am working with the Honeywell POS4NET Suite to communicate with one of their barcode readers. To use the Honeywell code, you also need to install the Microsoft POS for .NET v1.14, which I did.
I have a WPF application that will allow you at times to scan a barcode, in order to save on manual data entry.
Different barcodes will contain different types and amounts of data, so I did not simply want to output the barcode reader data to the currently focused field. Instead, I wanted to handle an event that would allow me to parse barcode data and make use of it in custom ways, assigning data to various fields, as appropriate.
I have written the code, and it works fine. It does exactly what I want it to do.
Unfortunately, the rest of my application now runs very, very, VERY slowly. Portions of the code that have nothing to do with the barcode reader are affected, even when I turn off the barcode reader functionality. (It is configurable, so that the application doesn’t waste time trying to find and connect devices if none are present.)
After a few of days of trying to determine why my code is suddenly crippled—removing new code, going back to previous versions to try and isolate the cause—I discovered that those older versions are now crippled too. I tried completely removing everything related to the barcode reader, but nothing worked until I uninstalled Microsoft POS for .NET v1.14.
Like a switch being turned back on, my application went back to being lightning quick again! I added back all of the latest code and everything continued to be fine (except that the barcode reader code is of course not functional, so I turned it off). When I re-installed Microsoft POS for .NET v1.14 it went right back to being insanely slow.
I see lots of examples of people using Microsoft POS for .NET v1.14 successfully, so there must be something wrong with my environment or implementation, but I do not know where to look—there are no errors in the code, and no exceptions thrown (that I can see).
Any ideas?