
MSComm with Serial Port on USB
Hi,
Do you have error handling in place?
On Error Resume Next
If MSComm1.PortOpen = False Then MSComm1.PortOpen = True
If Err.Number > 0 Then
MsgBox "Error opening port: " & Err.Description
End If
If this doesn't work, I'd contact the manufacturer of the adapter. MSComm
simply wraps the Windows communications API, so any lockup would have to be
caused by outside problems (the USB driver, probably).
--
Richard Grier (Microsoft Visual Basic MVP)
Hard & Software
12962 West Louisiana Avenue
Lakewood, CO 80228
303-986-2179 (voice)
303-986-3143 (fax)
Author of Visual Basic Programmer's Guide to Serial Communications, 2nd
Edition ISBN 1-890422-25-8 (355 pages).
For information look on my homepage at http://www.hardandsoftware.net.
Use the Books link to order. For faster service contact the publisher at
http://www.mabry.com.