InstallComCallback on Win7
I seem to have found a slight problem between Windows XP and Win7 computers target using InstallComCallback().
I developed my initial of the software on Windows XP. The next two bits of code worked fine in WinXP with an eventMask = LWRS_RXFLAG | LWRS_RECEIVE. But when I distributed the final software to Win7 machines, I was watching the callback called twice every time.
Here is my point:
// Callback scanner COM function void BarcodeScanner(int scannerPortNumber, int eventMask, void *callbackdata) { // re-init the output buffer memset(scannerData,0,SCANNER_MAX_BYTES); // go get the buffer ComRdTerm(scannerPortNumber,scannerData,SCANNER_MAX_BYTES,SCANNER_EOS); // raise the data flag scannerDataFlag = TRUE; // empty the buffer FlushInQ(scannerPortNumber); }
And here's my use of InstallComCallback():
void InitScannerComm(void) { int notifyCount = SCANNER_MIN_BYTES; int eventChar = SCANNER_EOS; // terminator charactor //int eventMask = LWRS_RXFLAG | LWRS_RECEIVE; // callback event won't happen unless the eventChar is received after notifyCount characters int eventMask = LWRS_RXFLAG; // TODO: the InstallComCallback() function seems to be calling the callback twice each time, even though I get a verified buffer of only N number of bytes int dataBits = SCANNER_DATABITS; int stopBits = SCANNER_STOPBITS; int inputQueueSize = SCANNER_MAX_BYTES; int parity = SCANNER_PARITY; int comportRing = 0; int i; // close port if it's already open: CloseCom(scannerPortNumber); // open COM port one time OpenComConfig(scannerPortNumber,scannerDeviceName,scannerBaudRate,parity,dataBits,stopBits,inputQueueSize,-1); // Make sure Serial buffers are empty FlushInQ(scannerPortNumber); FlushOutQ(scannerPortNumber); // look up how many COM options there are in the control GetNumListItems(tabPage2Handle,TABPANEL2_COMPORT,&comportRing); // set up callback function for COM for (i=1; i<=comportRing; i++) { if (i != scannerPortNumber) // disable all the other callbacks InstallComCallback(i, 0, notifyCount, eventChar, BarcodeScanner, NULL); else // enable the port that's been selected InstallComCallback(i, eventMask, notifyCount, eventChar, BarcodeScanner, NULL); } }
A little background... the device sends traffic COM is a Motorola/Symbol bar code scanner. I put it in place in a virtual COM mode. Use RealTerm hexadecimal display mode, I can confirm that this material is set up correctly, i.e. it sends what it should be (a string in the form: '012345' with a CR at the end).
And I know that the string is correct because the callback is called. The strange thing is that in onlyWin7, the callback is called two times, and then it's done. The second time, the string is all NULL values.
My fix was to remove the LWRS_RECEIVE option in the eventMask (i.e. remove the notifyCount threshold). Phew!
Is this a bug?
At this stage, it is difficult to say. We saw a few COM port behavior problems during the comparison between XP and 7. So that we can verify that this is a bug, we need to be able to reproduce this on our end. If you could think of a way for us to reproduce this behavior without your hardware (scanner), then we would be happy to test this on and file a corrective measure asks the R & D review. We appreciate your time to post or forums and make a note of what this can happen to other developers and at least they can watch to your workaround for a working solution.
Tags: NI Software
Similar Questions
-
iTunes 12.5.1.21 on Win7 crashes
I installed iTunes 12.5.1.21 on win7. He added without starting. I got the error info: I installed iTunes 12.5.1.21 on win7. He added without startingnes has stopped working. Details of the problem:
Signature of the problem:
Problem event name: APPCRASH
Application name: iTunes.exe
Application version: 12.5.1.21
Application timestamp: 57d32fa7
Fault Module name: WebKit.dll
Fault Module Version: 7602.1050.4.5
Fault Module Timestamp: 57 c 12000
Exception code: c0000005
Exception offset: 0000000000645e36
OS version: 6.1.7601.2.1.0.256.4
Locale ID: 1033
Additional information 1: 271e
More information 2: 271efe72e7fc7ac20bc86454f7f2adf1
3 more information: 8ae1
Additional information 4: 8ae122c2f5283cc8819a38c5c1a23646
I tried to uninstall and reinstall only - no chance.
I tried to run itunes in safemode, but always the same abend.
How can I fix?For general advice, see troubleshooting problems with iTunes for Windows updates.
The steps described in the second case are a guide to remove everything related to iTunes and then rebuild what is often a good starting point, unless the symptoms indicate a more specific approach.
Review the other boxes and other support documents list to the bottom of the page, in case one of them applies.
The more information box has direct links with the current and recent if you have problems to download, must revert to an older version or want to try the version of iTunes for Windows (64-bit - for older video cards) as a workaround for problems with installation or operation, or compatibility with third-party software.
Backups of your library and device should be affected by these measures but there are links to backup and recovery advice there.
TT2
-
Connection PC Win7 for iMac USB printer
Until yesterday, I had a printer is connected (USB connection) to a Time Capsule, and our laptop Windows 7 given the printer and would print it. But due to persistent problems with airport part not always wanted to connect with our satellite internet, I went to a separate router and the stop of the part of the airport. The Mac has been able to print to the printer, but the Win7 PC could not. Then I moved the printer (USB connection) to the iMac, but I still can't the Win7 PC to see the printer. I tried several methods but were unsuccessful.
Anyone has a suggestion or a position that could help? I found a ticket to Microsoft I've tried, but it does not match what the current software. I use OS X 10.11.6.
I'm planning on dumping, in the future the Win7 system and buy a new Mac, but until now, I need help.
Fred
Trying to install Print Services for Windows Hello on the Win7 PC. This app will allow you to see the shared printer on the iMac and allow you to print on it.
-
Thunderbird is stuck in the mode "not responding". I tried various fixes suggested on the web, such as restarting in safe mode, using Thunderfix and except on records of Thunderbird to antivirus scans, but nothing works. FYI, my antivirus is Norton Internet Security. I hope someone can help. Thank you.
You could take a little further...
Please start * Windows * safe mode with active network
-win8 http://windows.microsoft.com/en-us/windows-8/windows-startup-settings-safe-mode
-win7 http://windows.microsoft.com/en-us/windows/start-computer-safe-mode#start-computer-safe-mode=windows-7Always in Windows safe mode, start thunderbird in safe mode
- http://support.mozillamessaging.com/en-US/kb/safe-modeProblem disappear?
Just reply to inform us of the results. -
How can I find the name of an add-on running in Firefox / Win7
I want to use the add-on Firefox even I have on my desk on my laptop, but I don't remember the name of the add-in. How can I find out who. I am running Win7 on my desk.
You can also find a list of extensions on the help > troubleshooting information page.
-
TBird takes longer than half of the screen and all parts of it are bigger that they were on Win7, even though I have set to 100% (smaller) size in Win10 display options.
https://addons.Mozilla.org/en-us/Thunderbird/addon/theme-font-size-changer/
-
How can I recover my favorites after having reinstalled Win7 and Firefox?
I had to reinstall Win7 and Firefox and now need to find my bookmarks file and put it back in Firefox. What is called, and where is it located?
These backup files are compressed and not human readable. You can use it to completely replace your current set of bookmarks using the rollback feature (see beyond the dates at the bottom of the menu "Choose file...).
Important: A restore completely replaces your current set of bookmarks. If you have saved any new bookmarks you need, add a few steps:
(1) export current bookmarks to a file as HTML: Export Firefox bookmarks to an HTML file for backup or transfer bookmarks
(2) then do the restore
(3) import this file in HTML format: import bookmarks to an HTML file
(4) move the Bookmarks imported into their correct locations (they should be a folder of bookmarks imported somewhere on the menu bookmarks or Unsorted bookmarks) -
Cannot select several items for download in Win7 dialog box
Hello. You try to download several PDF elements to merge here: http://foxyutils.com/mergepdf/
Should work 'normally' - control click to select more than one. I have used the site before, but now you have a fresh user account as the last of them has been installed properly (but I had FF and he worked as far as I KNOW).FF 37.0.1 on Win7 Enterprise ghostery & adblockplus off, java temporarily the value 'always allow', set of java dev 'request' (cannot change).
Any thoughts anyone? Seems very strange. Don't know if it's a Windows problem; I can select several elements with control + click in windows Explorer...
By chance you have to update your flash player?
-
On the second PC, worked with Tbird 31.5.0. Advice needed to level. Started automatic level to 31.6.0. Immediately restart TBird, I received the message unable to connect to live.mozellamessaging.com instead of normal greeting on half lower the window. If I try to do a "get Messages", the following message at the bottom tells " pop.earthlink.net connection as it is so, but it just hangs there.»
I restarted TBird and even rebooted the system Win7 nothing helps. I watched the TBird account settings and they seem OK. Any suggestions on where to start?Thank you. I checked Norton AV and changed the auto setting allow and which seemed to fix the problem.
-
Thunderbird 31.5.0 slow to send. Win7 + AVG Int security
Most of the features in Thunderbird are fine, except that SEND takes an eternity to complete. Seems that this began with the last update Tbird.
I deleted Trash folders & sent as well as the compact folders. My Windows software is all patched up-to-date as is my AVG Internet Security Version 2014.0.4800 with virus database as of March 19, 2015. More time sending full after a certain time, but sometimes it times out (not helped by the presence of multiple recipients or a large file)Start * Windows * safe mode with active network
-win8 http://windows.microsoft.com/en-us/windows-8/windows-startup-settings-safe-mode
-win7 http://windows.microsoft.com/en-us/windows/start-computer-safe-mode#start-computer-safe-mode=windows-7
- Http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/boot_failsafe.mspx XPAlways in Windows safe mode, start thunderbird in safe mode
- http://support.mozillamessaging.com/en-US/kb/safe-modeProblem disappear?
Please respond to let us know. -
FREQUENT when editing response msg w Thunderbird win7 system crash
frequent (almost every edition response msg) win7 (ver 6.1 SP1) the system crash (blue screen) when editing response msg in Thunderbird (31.4.0), who need to reload the PC as after pwr OFF / ON pwr. NEVER generated or sent to the accident report.
try turning off hardware acceleration as shown here https://support.mozilla.org/en-US/questions/1012145
-
Our site is lsracers.com, as soon as you open the site, an audio file is supposed to play, (lower left corner an icon)
It is said, a plugin is required to read this content, it's on a win 7 Ltop. If I use a pc XP, it gave me the option to activate the plugin,
Windows Media Player plugin dll3.0.2.629 and he plays the second file 02:40. Why I can't get the plugin does work with FF in win7?FredMcD said
I opened my Inspector. That's all the help I can give you.
I called the big players to help you. Good luck.
BTW, do not forget the RWM , I spoke of? Watch the clip.
Thank you Fred McD, are nailed and others who responded. Now you should go on the site and visit if you like auto racing, thanks once again for the people and Merry Christmas.
-
Brother.
We use win7 with Mozila 31, 4.2 with Mozila Android smart phone latest google app store on 04/10/0214. Using the same account with the same email. But the phone does not get any new information of win7 with Mozila 31. PL z give useful information.Hi w3ur_team,
Thank you for your question. I understand that there are two features that are documented in the sync account. However the Android is not synchronized.There are two places we can check:
- In the Android settings, under accounts is the Firefox Sync or Firefox Sync (discouraged) joint account?
- Credentials work on accounts.firefox.com on the mobile device and are there any error messages in the synchronization of the settings menu > sync?
See also Firefox Sync troubleshooting and tips for more troubleshooting steps.
-
Migrating to Win7 desktop to laptop Win XP
I've been using TB for a few months now on Win7. Now I need to copy my file mail on WinXP on my laptop for a road trip.
On my desk, I have configured to use a profile on a TB data partition and it works fine.
I installed TB on my laptop and made it a mirror image of the desktop version. TB installed in the boot partition with the profile in the data partition.
I changed the profile.ini in the documents and settings folder to point to the the new data partition profile but every time I start TB it wants me to setup my accounts. It doesn't seem to get what in needs from the new profile. I tried several times and have read the info on moving the profile location but still does cannot make it work.
Am I missing something? I have not tried manually add each account back in but if I can't get the copied profile to work. I did work on Win7, why I can't make it work on Windows XP?
What Miss me?
- Copy your new profile name and delete this profile.
- Change the old profile name with the new profile name (copied a)
- Copy this profile to thunderbird.
Still get error, create a new profile and try this
-
How to copy Contact addresses in the address book of TB in Win7?
In Win7 have addresses in the Contacts under the USER folder. How to copy all the Thunderbird addresses at once. Currently you can not move at the same time. Pls info. Thank you.
See here http://thunderbirdtweaks.blogspot.com.au/2013/12/windows-contacts.html
Maybe you are looking for
-
Since updates to firefox, it is not possible to add a document to my email c Telfort.nl
Since one of the most recent updates to firefox, it is not possible to add a document to my email address is Telfort.nlI checked with Telfort and no problems of this type are known.
-
Windows Firefox keeps jumping up and down.
I downloaded the latest version of Firefox, but I have a slight problem. Everytime I open Firefox it jumps up and down. How can I stop it? This has happened Each time Firefox opened == Earlier, I downloaded the latest version of firefox 3.6.6
-
How to create a backup on DVD - R,
I tried, but it took too long. HP Pavilion DV6-6145dx, Windows 7 64 bit.
-
update security for Windows XP
I use to install update security for Windows xp KB9811349, but their still another day KB956802, KB979683 KB970238, KB978338, what should I do for this new upcoming update KB numbers are lower than the 1st one i rescently installed
-
I tried to configure an ePrint. When I want to create an account, after that the printer print the installation instructions and I followed him to click on 'do not have an account, create an account', the page is returned to "Welcome!" Unleash the po