Re: ADOQuery async operation
- From: Andy Stephenson <info2004@xxxxxxxxxxxxx>
- Date: Fri, 02 May 2008 11:06:49 +0100
Oops. Needed to add eoAsyncFetch.
Sorry to bother.
....Andy
Andy Stephenson wrote:
Hi,.
I am using a TADOQuery and have set ExecuteOptions to [eoAsyncExecute], and have set ADOQuery.OnFetchComplete := MyHandler.
However, when I set ADOQuery.Active := true after setting the SQL, my handler never fires.
All of this happens in a thread, and the ADOConnection, ADOQuery are created in the .Execute of the thread before my while (not Terminted) loop. All works as expected if I use sync calls, but I want to let other threads in whilst waiting for the results.
So, working on the assumption I have missed something, does anyone know of any articles on using ADOQuery asynchronously? Google is not proving to be of help so far.
Thanks,
Andy
- References:
- ADOQuery async operation
- From: Andy Stephenson
- ADOQuery async operation
- Prev by Date: ADOQuery async operation
- Next by Date: Re: ADOQuery async operation
- Previous by thread: ADOQuery async operation
- Next by thread: Re: ADOQuery async operation
- Index(es):