Re: ADOQuery in thread hangs



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

.



Relevant Pages

  • Re: ADOQuery in thread hangs
    ... have any ADOConnection, I just use a connectionstring directly in the ... ADOQuery. ... do you also call coInitializeEx and coUninitialize in ... Contribute to the Indy Docs project: http://docs.indyproject.org ...
    (borland.public.delphi.database.ado)
  • Re: MTA with Thread Pool API
    ... Microsoft technical article says to do for proper connection pooling. ... CoUninitialize() in regards to the thread pool API. ... CoInitializeEx, but I still have no opportunity to call CoUninitialize. ...
    (microsoft.public.win32.programmer.kernel)
  • Re: MTA with Thread Pool API
    ... Microsoft technical article says to do for proper connection pooling. ... my question is related to CoInitializeEx/ CoUninitialize() ... Storage, I can flag whether or not the thread has called CoInitializeEx, ... some way that I can use the thread pool API? ...
    (microsoft.public.win32.programmer.kernel)
  • Re: TAPI sample in VC++ using MFC
    ... It seems as though I can put the CoInitializeEx just about anywhere, ... matter where I put the CoUninitialize I get the crash. ... >> One problem remains in the sample code. ... > destination number and the destination type in my sample. ...
    (microsoft.public.win32.programmer.tapi)
  • Re: MTA with Thread Pool API
    ... process holds on to it's own connection object, ... my question is related to CoInitializeEx/ CoUninitialize() ... Storage, I can flag whether or not the thread has called CoInitializeEx, ... some way that I can use the thread pool API? ...
    (microsoft.public.win32.programmer.kernel)