Author Topic: Exception when there is no modems in PC  (Read 1223 times)

engkfke

  • Newbie
  • *
  • Posts: 14
    • View Profile
Exception when there is no modems in PC
« on: March 22, 2011, 01:22:15 pm »
Hello,,
I'm using nrComm in my application and when there is no modem in The PC the application throw exception and then terminated.

what can i do to avoid this problem ?

Roman Novgorodov

  • Engineer
  • Administrator
  • Hero Member
  • *****
  • Posts: 994
  • we will win
    • View Profile
    • Forums.nrCommLib.Com
Re: Exception when there is no modems in PC
« Reply #1 on: March 22, 2011, 01:32:45 pm »
Hello

I don't understand what exception do you see.

Possible you set nrCommTAPI.DeviceIndex in incorrect value.

You can try to set nrCommTAPI.DeviceIndex := -1; in design time and select modem at runtime.

Roman Novgorodov
DeepSoftware.Com
DeepSoftware llc - The professional components for Delphi/CBuilder/.NET. The high quality custom software development.
Forums.nrCommLib.Com - DeepSoftware Tech Support Forum.

engkfke

  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: Exception when there is no modems in PC
« Reply #2 on: March 23, 2011, 02:19:26 pm »

Hello Roman,

Simply i created a new borland C++ project and i added only the nrComTapi component and set the DeviceIndex equal to -1 . then i added  the nrDeviceBox component and set the property  (nrcomm = nrcomTapi ) .

When i run this simple application in any PC which has no Modems it gave me only (Abstract Error : ) Message.

Can you remove all modems driver definition in your device and make this simple experiment and inform me about your result ?

Thanx in advance.


Roman Novgorodov

  • Engineer
  • Administrator
  • Hero Member
  • *****
  • Posts: 994
  • we will win
    • View Profile
    • Forums.nrCommLib.Com
Re: Exception when there is no modems in PC
« Reply #3 on: March 23, 2011, 03:04:32 pm »
Hello

What nrComm version do you use?
What CBuilder version do you use?

Abstract error was in very old versions.

Roman Novgorodov
DeepSoftware.Com
DeepSoftware llc - The professional components for Delphi/CBuilder/.NET. The high quality custom software development.
Forums.nrCommLib.Com - DeepSoftware Tech Support Forum.

engkfke

  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: Exception when there is no modems in PC
« Reply #4 on: March 26, 2011, 02:58:00 pm »
yes i worked on old version of the nrcomm i bought it form more than 3 years.
Send Me the Link of the Last updated version of it.