Article View: borland.public.cppbuilder.database.ado
Article #3260Re: TADODataSet->FieldCount==0
From: Vassiliev V.V.
Date: Thu, 07 Nov 2002 23:17
Date: Thu, 07 Nov 2002 23:17
40 lines
2638 bytes
2638 bytes
COM uses messages internally. When CoInitialize() is called (and it is called if you use any COM object) Windows creates hidden window. Calling Application->ProcessMessages() will process messages for all windows in a thread including hidden ones (DispatchMessage() will do this). So processing messages may have effect on what COM object does in main thread and it may affect switching to other threads that ADO creates internally. ---------------------------------------------------------------- Regards, Viatcheslav V. Vassiliev http://www.oledbdirect.com The fastest way to access MS SQL Server and MS Jet (MS Access) databases. "Mike Ruskai" <spamten.knilhtrae@begonedynnaht.net> ???????/???????? ? ???????? ?????????: news:gunaalqrneguyvaxarg.h586bg1.pminews@207.105.83.65... > On Thu, 7 Nov 2002 13:47:41 +0300, Vassiliev V.V. wrote: > > >>I tried putting in a delay loop (with a Sleep() call in the middle) that > >waited for the field count to not be equal to 0, but it runs forever. > > > >Do you have Application->ProcessMessages() in loop? > > Of course not. We're not dealing with visual components here. Checking > messages should not have any effect on when the dataset is properly > constructed. > > Since we are working in the Windows world here, I guess I shouldn't make > logical assumptions all the time, however. I'll try putting that in the loop > later on. > > > -- > - Mike > > Remove 'spambegone.net' and reverse to send e-mail. > >
Technical Details
Message-ID:
<3dcaf4d7@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-04!supernews.com!news.maxwell.syr.edu!news.he.net!news-out.spamkiller.net!propagator2-maxim!news-in.spamkiller.net!news02.tsnz.net!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<gunaalqrneguyvaxarg.h56o2w1.pminews@207.105.83.65> <3dca4aca@newsgroups.borland.com> <gunaalqrneguyvaxarg.h586bg1.pminews@207.105.83.65>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,db15d9f63f3ea0ff X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2002-11-07 15:24:04 PST From: "Vassiliev V.V." <news@vassilievvv.mtu-net.ru> Newsgroups: borland.public.cppbuilder.database.ado References: <gunaalqrneguyvaxarg.h56o2w1.pminews@207.105.83.65> <3dca4aca@newsgroups.borland.com> <gunaalqrneguyvaxarg.h586bg1.pminews@207.105.83.65> Subject: Re: TADODataSet->FieldCount==0 Date: Fri, 8 Nov 2002 02:17:40 +0300 Lines: 42 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 NNTP-Posting-Host: 212.188.98.186 Message-ID: <3dcaf4d7@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1036711127 212.188.98.186 (7 Nov 2002 15:18:47 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-04!supernews.com!news.maxwell.syr.edu!news.he.net!news-out.spamkiller.net!propagator2-maxim!news-in.spamkiller.net!news02.tsnz.net!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail