08-20-2007 09:04 AM
08-22-2007 11:00 PM - edited 08-22-2007 11:00 PM
Hi Herman,
You might be able to cure this by explicitly closing the connection before your EXE terminates, anyway, there's a nice description of this error here - it seems to be an OS "feature". The way I read this, if your EXE terminates leaving a connection open, the port will remain "reserved" for several minutes - the OS is trying to protect the port for you, not realizing you don't need it any more. No other application - including your re-launched EXE - can use the port before the timeout.
The link describes a registry-mod allowing you to set this OS timeout to a smaller value. ![]()
In the development environment, when you open the port, the OS allocates it to LabVIEW.exe - making it easier to reause the port while developing. Also, there's a little vi called "Internacine Avoider.vi" used to remember what ports are already opened - so LabVIEW knows to reuse them instead of trying to open them again.
Cheers!
Message Edited by tbd on 08-22-2007 11:00 PM