Re: Error when doing an async execute

From: Brian Bushay TeamB (BBushay_at_Nmpls.com)
Date: 09/01/04


Date: Tue, 31 Aug 2004 21:05:08 -0500


>I am using a TADOConnection object and running MSSQL sprocs asynchronously.
>It all works :) If Upon a timeout, I get an error object passed into
>OnExecuteComplete...just as it should be... however... I also get an
>exception thrown after the OnExecuteComplete has completed. The exception is
>the same message as the Error object passed into OnExecuteComplete. I have
>tried setting EventStatus := esUnwantedEvent; into the handler but with no
>effect.
>
>Any ideas (Delphi 6) ?
wrap your TadoConnection.Execute in a try/Except block

--
Brian Bushay (TeamB)
Bbushay@NMPLS.com


Relevant Pages

  • Error when doing an async execute
    ... I am using a TADOConnection object and running MSSQL sprocs asynchronously. ... exception thrown after the OnExecuteComplete has completed. ... the same message as the Error object passed into OnExecuteComplete. ...
    (borland.public.delphi.database.ado)
  • Re: send with timeout socket
    ... Stéphane Ninin wrote: ... Assuming you set a timeout t on a socket s and then call: ... Is the socket.timeout exception thrown when nothing was sent or ... ...
    (comp.lang.python)