Discussion Locked

Visual Basic - MSComm Control

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I am currently developing an application that connects to a remote server via an external modem. I don't have a problem connecting, my problem is staying connected and retrieving all the data. All of my modem settings are set properly, if you can offer some assitance it would be greatly appreciated. Hugh

5 replies

by shmaltz

I dont understand your problem but I assume its that after connecting your modem disconnects before you tell it to.
Try using a timer control that will work once the port is open and make sure it checks the buffer for data that way you can get all your data, or try using a loop in the code that opens the port that check for data.
With the info you gave thats all i can tell you.

by slhsolutions

For NT/Windows 2000 servers in the registry path of
"\\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Advantage\Configurat
ion".
Add the value PARTIAL_CONNECTION_TIMEOUT=120000

If the file size of the data is very large, this may allow for full transmission, but not do anything for speed.
If speed is the concern, you may want to consider duplexing modems.

This discussion is closed to new replies.