I'm having issues with a USB comport adaptor on a Windows 7 PC. The program hangs sometimes when reading, writing, or closing the port.
My application is in CVI Version 8.1.0. This occurs running as executable and in the environment. When the crash occurs in the environment it says a nondebuggable thread has caused a fault at address 68647163, the address is always the same. The CVI environment and program cannot be closed, the only way to exit is to turn off the PC;s power.
This only happened on Windows 7 PC, on XP with the same adaptor it works fine.
I've read a couple posts which suggest using OpenComConfig with a value of -1 for the input and output queue size to eliminate problems. Here is one thread with this suggestion:
http://forums.ni.com/t5/LabWindows-CVI/Serial-communications-with-Windows-7/td-p/1253850/highlight/t...
When I do this, I get an error from OpenComConfig: -114 Requested input queue size must be 0 or greater.
How is it possible to specify -1 as the queue size? Is this not available in 8.1?