Comm Port Open/Close question 
Author Message
 Comm Port Open/Close question

While working in the emulation environment, my syntax for
opening the Comm port works, but the emulation crashes
when I try to close it. Any ideas?

   .      
   .
   Comm1.CommPort = CStr(sCommPort)
   Comm1.Settings = sCommStr
   Comm1.PortOpen = True
   Comm1.PortOpen = False - emulation crashes on this line.



Tue, 25 May 2004 03:55:12 GMT  
 Comm Port Open/Close question

Quote:

> While working in the emulation environment, my syntax for
> opening the Comm port works, but the emulation crashes
> when I try to close it. Any ideas?

>    .      
>    .
>    Comm1.CommPort = CStr(sCommPort)
>    Comm1.Settings = sCommStr
>    Comm1.PortOpen = True
>    Comm1.PortOpen = False - emulation crashes on this line.

An Idea

If Comm1.PortOpen
        Comm1.PortOpen = False
End If

roland



Tue, 25 May 2004 17:03:08 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Closing the comm port

2. Closing Comm Port with Sportster 28.8K (MSCOMM)

3. Closing Comm Port with Sportster 28.8 (MSCOMM)

4. Closing Comm Port with Sportster (MSCOMM)

5. MS Comm Control won't close port

6. Closing a COMM Port

7. Open comm port

8. API - Opening a Comm port -NT

9. How to detect an open comm port

10. opening and sending BINARY to a comm port.

11. Comm port freezes on open!

12. (Q) How to open a comm port.

 

 
Powered by phpBB® Forum Software