🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.ado
Article #1658

CPU 100% when using TADOQuery

#1658
From: Sara T.
Date: Thu, 11 Mar 2004 02:16
23 lines
1573 bytes
When I use class TADOQuery to connect to retrieve or update in database, it
often eats memory and take a lot of cpu (around 90-100%) per times. What is
going on ? and How can I eliminate this problem or reduce memory management
?

Following is some part of my using this class:

TADOQuery *ADOQuery = new TADOQuery(NULL);


ADOQuery->ParamCheck       = false;
ADOQuery->Prepared         = true;

ADOQuery->ConnectionString =  m_strConnectionString;
AnsiString strSQLString;

strSQLString = "SQL Statement to insert data to database"

ADOQuery->SQL->Clear();
ADOQuery->SQL->Add(strSQLString);
int iSuccess=ADOQuery->ExecSQL();

delete ADOQuery;
Technical Details
Message-ID: <404fcc0a@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed.iinet.net.au!newsfeed.iinet.net.au!PeerFeed.KWeb.on.ca!news.kweb.on.ca!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,22a21529f5d43e51,start
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2004-03-10 18:20:14 PST
Reply-To: "Sara T." <sarana@infoquest.co.th>
From: "Sara T." <sarana@infoquest.co.th>
Newsgroups: borland.public.cppbuilder.database.ado
Subject: CPU 100% when using TADOQuery
Date: Thu, 11 Mar 2004 09:16:30 +0700
Lines: 26
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 203.150.210.47
Message-ID: <404fcc0a@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1078971402 203.150.210.47 (10 Mar 2004 18:16:42 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed.iinet.net.au!newsfeed.iinet.net.au!PeerFeed.KWeb.on.ca!news.kweb.on.ca!newsgroups.borland.com!not-for-mail