Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error in lineOpen function when try to use 2 modems on same PC

Status
Not open for further replies.

aksu

Programmer
Feb 26, 2003
5
0
0
MT
Problem: I have to use 2 instances of application to support 2 modems but I have error in second instance, when trying to connect to second modem, the first instance works fine with first modem.

Program use WIN API calls to "LineOpen" function.

Scenario:

1. I start application,
2. Connect first modem
3. Connection succeed
4. Close application
5. Start application again
6. Connect to second modem
7. Connection succeed
8. Close application.
9. Start application.
10. Connect to first modem
11. Connection succeed
12. Start second instance of program,
13. Connect to second modem
14. Error in "LineOpen" function WIN API - "Cannot open phone line".
15. All this time first instance works fine and is able to receive calls.

Operation system: Windows XP Version 5.1 Build 2600
Modems use COM 3 and COM 4 ports.

Thank you in advance.

 
Generally speaking it's UNIX forum.
Cannot open phone line is not lineOpen return code. See lineOpen in MSDN: LINEERR_.. codes...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top