Re: ADOQuery in thread hangs
- From: "Mikael Lenfors" <mikael@xxxxxxxxxx>
- Date: Wed, 22 Nov 2006 15:19:20 +0100
Tried to put CoInitialize(Null, COINIT_APARTMENTTHREADED); at the
beginning of my thread Execute but it's an unknown command. What Uses am I
supposed to provide?
Regards Mikael
"Mikael Lenfors" <mikael@xxxxxxxxxx> wrote in message
news:45644dd6@xxxxxxxxxxxxxxxxxxxxxxxxx
No, I didn't know this was nessessary? What is this?
regards, Mikael
"Guillem" <guillemvicens-nospam@xxxxxxxxxxxxxxxxxx> wrote in message
news:4564194e$1@xxxxxxxxxxxxxxxxxxxxxxxxx
Mikael Lenfors wrote:
Yes I create a TADOQuery local to the thread. In the thread I don't
have any ADOConnection, I just use a connectionstring directly in the
ADOQuery.
Mikael
do you also call coInitializeEx (or coInitialize) and coUninitialize in
each thread that uses ADO?
--
Best regards :)
Guillem Vicens Meier
Dep. Informatica Green Service S.A.
www.clubgreenoasis.com
--
Contribute to the Indy Docs project: http://docs.indyproject.org
--
In order to contact me remove the -nospam
.
- Follow-Ups:
- Re: ADOQuery in thread hangs
- From: Kevin Frevert
- Re: ADOQuery in thread hangs
- References:
- ADOQuery in thread hangs
- From: Mikael Lenfors
- Re: ADOQuery in thread hangs
- From: Brian Bushay TeamB
- Re: ADOQuery in thread hangs
- From: Mikael Lenfors
- Re: ADOQuery in thread hangs
- From: Guillem
- Re: ADOQuery in thread hangs
- From: Mikael Lenfors
- ADOQuery in thread hangs
- Prev by Date: Re: Project using Firebird
- Next by Date: Re: ADOQuery in thread hangs
- Previous by thread: Re: ADOQuery in thread hangs
- Next by thread: Re: ADOQuery in thread hangs
- Index(es):