🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: CPU 100% when using TADOQuery

#1662
From: Sara T.
Date: Fri, 12 Mar 2004 02:17
25 lines
1848 bytes
I am using following items:
- Borland C++ Builder 6.0
- Microsoft Windows 2000 Server SP4
- Microsoft SQL 2000 Server SP3
- MDAC 2.8

I don't know where can I put Application->ProcessMessages() because I
thought the method which make the CPU 100 % is ADOQuery->ExecSQL() because
otherwise part of program is only set properties and value to variables.

Any ideas ?


"Dwayne" <myfrienddr@yahoo.com> wrote in message
news:40507efe$1@newsgroups.borland.com...
>    Hello Sara,
> 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.
>
>        Put in a Application->ProcessMessages();
>
>             Dwayne
>
>
Technical Details
Message-ID: <40511de1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!news-FFM2.ecrc.net!uio.no!news.tele.dk!news.tele.dk!small.news.tele.dk!npeer.de.kpn-eurorings.net!feed.news.schlund.de!schlund.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <404fcc0a@newsgroups.borland.com> <40507efe$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,22a21529f5d43e51
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2004-03-11 18:40:05 PST
Reply-To: "Sara T." <sarana@infoquest.co.th>
From: "Sara T." <sarana@infoquest.co.th>
Newsgroups: borland.public.cppbuilder.database.ado
References: <404fcc0a@newsgroups.borland.com> <40507efe$1@newsgroups.borland.com>
Subject: Re: CPU 100% when using TADOQuery
Date: Fri, 12 Mar 2004 09:17:56 +0700
Lines: 27
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: <40511de1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1079057889 203.150.210.47 (11 Mar 2004 18:18:09 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!news-FFM2.ecrc.net!uio.no!news.tele.dk!news.tele.dk!small.news.tele.dk!npeer.de.kpn-eurorings.net!feed.news.schlund.de!schlund.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail