J
John
I have some code (in an OSGi bundle) which uses a CommPortIdentifier
object to enumerate the available COM ports on a Windows XP system
(Dell Latitude laptop).
With portList being an Enumeration object, it sets:
portList = CommPortIdentifier.getPortIdentifiers();
When the code next calls 'portList.hasMoreElements(),' the method
returns 'false,' even though there clearly is a COM1 port which I can
observe in action using HyperTerminal (HyperTerm is closed when running
the Java code).
The strange thing is that this code has been known to work on this same
machine in the past. One day the behavior changed and I can't figure
out why...any suggestions would be greatly appreciated.
object to enumerate the available COM ports on a Windows XP system
(Dell Latitude laptop).
With portList being an Enumeration object, it sets:
portList = CommPortIdentifier.getPortIdentifiers();
When the code next calls 'portList.hasMoreElements(),' the method
returns 'false,' even though there clearly is a COM1 port which I can
observe in action using HyperTerminal (HyperTerm is closed when running
the Java code).
The strange thing is that this code has been known to work on this same
machine in the past. One day the behavior changed and I can't figure
out why...any suggestions would be greatly appreciated.