Re: Error when doing an async execute
From: Brian Bushay TeamB (BBushay_at_Nmpls.com)
Date: 09/01/04
- Next message: Brian Bushay TeamB: "Re: ADO UpdateBatch Problems"
- Previous message: Brian Bushay TeamB: "Re: Querying two separate connections"
- Next in thread: Robert: "Re: Error when doing an async execute"
- Reply: Robert: "Re: Error when doing an async execute"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: Brian Bushay TeamB: "Re: ADO UpdateBatch Problems"
- Previous message: Brian Bushay TeamB: "Re: Querying two separate connections"
- Next in thread: Robert: "Re: Error when doing an async execute"
- Reply: Robert: "Re: Error when doing an async execute"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|