Article View: borland.public.cppbuilder.database.ado
Article #161Re: TADOQuery Memory Leak
From: Clayton Arends
Date: Wed, 25 Apr 2007 18:17
Date: Wed, 25 Apr 2007 18:17
13 lines
1244 bytes
1244 bytes
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); > Application->ProcessMessages(); Don't call this from within any thread other than the main application thread. HTH, - Clayton
Technical Details
Message-ID:
<462f9b39$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<462d7a19$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: "Clayton Arends" <nospam_claytonarends@hotmail.com> Newsgroups: borland.public.cppbuilder.database.ado References: <462d7a19$1@newsgroups.borland.com> Subject: Re: TADOQuery Memory Leak Date: Wed, 25 Apr 2007 11:17:51 -0700 Lines: 15 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: 71.93.4.10 Message-ID: <462f9b39$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1177525049 71.93.4.10 (25 Apr 2007 11:17:29 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail