Why does MSComm hang PC on Open? 
Author Message
 Why does MSComm hang PC on Open?

I first check the MSComm1.PortOpen for false and then issue the true to
open/connect to the modem. My system hangs at this point.

Root cause for this is that my PC connects the modem when I start my PC. VB
doesn't recognize the correct status. The system hangs trying to open an
open modem.

I remove the error by opening a HyperTerminal session and disconnect the
modem. I then restart my application and it works correctly.  While this
works for testing, I need a solution that my user can live with.

Any suggestions?



Sun, 27 Jun 2004 00:33:33 GMT  
 Why does MSComm hang PC on Open?
Further info.

The reason my port is open is that I have address contention between the
modem and the network card.  When I start my PC both cards get opened.  I
know I can resolve this issue with a fix on the address, but what happens
when (not if) the user hits this and the system hangs?

Does VB have a peek and poke function that can see the "actual" serial port?

Thanks for any suggestions.


Quote:
> I first check the MSComm1.PortOpen for false and then issue the true to
> open/connect to the modem. My system hangs at this point.

> Root cause for this is that my PC connects the modem when I start my PC.
VB
> doesn't recognize the correct status. The system hangs trying to open an
> open modem.

> I remove the error by opening a HyperTerminal session and disconnect the
> modem. I then restart my application and it works correctly.  While this
> works for testing, I need a solution that my user can live with.

> Any suggestions?



Sat, 03 Jul 2004 03:41:46 GMT  
 
 [ 2 post ] 

 Relevant Pages 

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

2. Opening template hangs my PC!

3. Why MSCOMM control DOES NOT OPEN PORT?

4. Client PCs hang after installing office2000

5. Network question: VB app run off server hangs PC's

6. PC hangs with Internet Transfer Control

7. PC hangs after the second report start

8. PC hangs when viewing Crystal Reports 7.0 on P4 machine with VIA chipset

9. PC Hangs after closing app with CR 6.1.0.609

10. Executing a Stored Procedure via ADO hangs the PC

11. Executing a Stored Procedure via ADO hangs the PC

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

 

 
Powered by phpBB® Forum Software