Article View: borland.public.cppbuilder.internet.socket
Article #3335Using Synchronize with TIdHTTPServer ...
From: noel
Date: Mon, 17 Oct 2005 21:05
Date: Mon, 17 Oct 2005 21:05
41 lines
2136 bytes
2136 bytes
Hello all !
I am trying to write a HTTP server using the
TIdHTTPServer component under C++Builder V6 and Indy 9
and am having a problem with using / understanding the use
of the the Synchronize function ...
void __fastcall TMainForm::IdHTTPServer1CommandGet(TIdPeerThread
AThread, TIdHTTPRequestInfo *ARequestInfo, TIdHTTPResponseInfo
*AResponseInfo)
{
...
AThread -> Synchronize (DisplayServerTrace); <= Error !
void TMainForm::DisplayServerTrace (void)
{
RequestsCount ++;
EditRequestsCount -> Text = IntToStr (RequestsCount);
StringGridServerTraces -> Cells[1][CurrentThreadIndex + 1] = TraceString;
}
When trying to call AThread -> Synchronize i get a link error:
"Member function must be called or its address taken" !
I have used Synchronize many times with the TThread class but
why doesn't it work with the TidThread descendant ?
Am i missing something ?
Somrthing is wrong with the (re)definition of Synchronize ?
Thhanks for any help !
Please if possible CC to my email address also ...
as i don't check the newsgroup too often ...
Many thanks !
No�l
Technical Details
Message-ID:
<4354113a$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newsread.com!news-xfer.newsread.com!news-out2.kabelfoon.nl!newsfeed.kabelfoon.nl!bandi.nntp.kabelfoon.nl!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 11508e,db0c9688e1f91c26,start X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII Date: Mon, 17 Oct 2005 17:05:47 -0400 From: noel <noel@teledata.qc.ca> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.internet.socket Subject: Using Synchronize with TIdHTTPServer ... Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit NNTP-Posting-Host: 207.96.139.202 Message-ID: <4354113a$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1129582906 207.96.139.202 (17 Oct 2005 14:01:46 -0700) Lines: 41 Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newsread.com!news-xfer.newsread.com!news-out2.kabelfoon.nl!newsfeed.kabelfoon.nl!bandi.nntp.kabelfoon.nl!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail