Article View: borland.public.cppbuilder.database.ado
Article #164Re: TADOQuery Memory Leak
From: Patrick Wong
Date: Thu, 26 Apr 2007 01:02
Date: Thu, 26 Apr 2007 01:02
22 lines
1704 bytes
1704 bytes
"Clayton Arends" <nospam_claytonarends@hotmail.com> wrote in message news:462f9b39$1@newsgroups.borland.com... > Since the ADO objects are being constructed in the main application thread > you most likely need to invoke OleInitialize() for your main thread. > Place the following in either your main form's constructor or in > WinMain(). > > OleInitialize(NULL); The TADOConnection and TADOQuery objects are declared as private members of the thread and created at the thread's constructor. Is it still an issue calling CoInitalize() and CoUninitialize() in the thread's context? > >> Application->ProcessMessages(); > > Don't call this from within any thread other than the main application > thread. > Comment out that does not help.
Technical Details
Message-ID:
<462ffa42$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!proxad.net!212.101.4.254.MISMATCH!solnet.ch!solnet.ch!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<462d7a19$1@newsgroups.borland.com> <462f9b39$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,f6b9f007fd37682e X-Google-Attributes: gid10698b,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Patrick Wong" <patrickwong@computer.org> Newsgroups: borland.public.cppbuilder.database.ado References: <462d7a19$1@newsgroups.borland.com> <462f9b39$1@newsgroups.borland.com> Subject: Re: TADOQuery Memory Leak Date: Thu, 26 Apr 2007 09:02:58 +0800 Lines: 24 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3028 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 X-RFC2646: Format=Flowed; Response NNTP-Posting-Host: 203.82.254.252 Message-ID: <462ffa42$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1177549378 203.82.254.252 (25 Apr 2007 18:02:58 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!proxad.net!212.101.4.254.MISMATCH!solnet.ch!solnet.ch!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail