I am using Delphi4 with no patches applied, Async pro 2.57 released March
1999 and am writing to the rs232 with the TapdComport component. The
exception happens when the port is opened through the PutString procedure.
I have seen messages like this pop up when the port is already open (in most
cases it gives a more meaningful message, but I have also seen the behavior
that you are describing.
You can check if this is the case by setting ShowPortsInUse to false and
then making a call to IsPortAvailable for the port in question. This method
is in AdSelCom, so you will need to add that to your uses clause.
--
duncan gold [TurboPower]
TurboPower: http://www.turbopower.com
Personal: http://www.autowitch.org
"Manny Martinez" <mannym...@hotmail.com> wrote in message
news:$t7mQVF#BHA....@tpsmail01.turbopower.net...
That may not help. I have seen this problem when there is a printer defined
on the NT or 2000 machine that is set up to use the COM port you are trying
to open. APRO does not recognise the generated exception so gives an 'apro
exception' error. A work around would do something like this
---------------------------
uses Adexcept;
...
try
...
except
on E : EAPDException do
if (E.ErrorCode = 0) or (E.Message = 'Apro execption') do
begin
ShowMessage('Error using Com port, please select another');
...
end;
end;
-----------------------------
Regards,
John Morris
jh...@hotmail.com
Manny
"Malcolm Foo" <malc...@alfatron.com.au> wrote in message
news:HZ70EuIA...@tpsmail01.turbopower.net...
--
Mike Welch (TurboPower Software)
Please reply to the newsgroups
God bless America
------------------------
"Manny Martinez" <mannym...@hotmail.com> wrote in message
news:jkNdCfnA...@tpsmail01.turbopower.net...