MSComm-hangs if no answer?!? 
Author Message
 MSComm-hangs if no answer?!?

I'm using the MSComm32.ocx to dial another computer.  Everything works
if the other computer answers, but if not, the comm port seems to hang.
I can't find any way to reset the port.  Any solutions are welcome,
including a replacement for the MSComm control!
Joanne


Mon, 22 Jul 2002 03:00:00 GMT  
 MSComm-hangs if no answer?!?
Hi Joanne,

MSComm has no idea whether or not the other computer modem has answered.
So, the "hang" that you describe probably has some other explanation (read,
a code problem).  Without knowing more, I have a hard time saying for sure.

I do have several working examples in my book (see below) that dial,
connect, and send and receive data.  If a connection cannot be established,
the modem sends outputs a reply to the dial command, "NO CARRIER" & vbCrLf.
You code probably needs to detect this response (and others), and to monitor
CD (using CDHolding).

--
Richard Grier (Microsoft Developer 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 (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.



Mon, 22 Jul 2002 03:00:00 GMT  
 MSComm-hangs if no answer?!?
Joanne,

Take Richard Grier's advice and buy his book...it's well worth the price if
you do any MSComm programming at all.


Quote:
> I'm using the MSComm32.ocx to dial another computer.  Everything works
> if the other computer answers, but if not, the comm port seems to hang.
> I can't find any way to reset the port.  Any solutions are welcome,
> including a replacement for the MSComm control!
> Joanne



Thu, 25 Jul 2002 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. MSCOMM-hangs if no answer?!?!?

2. MSCOMM Answer - mscomm.zip (1/1)

3. MSCOMM Answer - mscomm.zip (0/1)

4. MSComm hangs computer? (VB 3.0, 4.0)

5. Why does MSComm hang PC on Open?

6. MSComm.VBX hangs computer? (Visual Basic 3.0, 4.0)

7. MSComm hangs computer? (VB 3.0, 4.0)

8. VB MSCOMM close port w/o hang-up

9. VB and COM ports and mscomm.vbx and hung PCs

10. hanging up w/ mscomm.vbx?

11. (BUG): Hanging up the modem without mscomm

12. MSComm when no modem it hangs for 30 seconds

 

 
Powered by phpBB® Forum Software