🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #3339

Re: Using Synchronize with TIdHTTPServer ...

#3339
From: noel
Date: Mon, 17 Oct 2005 23:58
53 lines
2415 bytes
noel wrote:

Sorry i meant
  AThread -> Synchronize (&DisplayServerTrace);
 >
 > ... links OK but of course doesn't work properly ...
 > That's why i suspected something wrong int the redeclaration
 > of the Synchronize () in TidThread ... (?)

> Hello Remy ...
> 
> My example code was wrong ... but even with the
> proper declaration i have the same result ... ???
> void __fastcall TMainForm::DisplayServerTrace (void)
> 
> Link error : Member function must be called or its address taken   
> 
> on
> 
> AThread -> Synchronize (DisplayServerTrace);
> or
> AThread -> Synchronize ((TThreadMethod) DisplayServerTrace);
> 
> Now this:
> AThread -> Synchronize (DisplayServerTrace);
> 
> ... links OK but of course doesn't work properly ...
> That's why i suspected something wrong int the redeclaration
> of the Synchronize () in TidThread ... (?)
> 
> No�l
> 
> 
> Remy Lebeau (TeamB) wrote:
> 
>> "noel" <noel@teledata.qc.ca> wrote in message
>> news:4354113a$1@newsgroups.borland.com...
>>
>>
>>> void TMainForm::DisplayServerTrace (void)
>>
>>
>>
>> Your method is not declared correctly.  It must use the __fastcall 
>> calling
>> convention, ie:
>>
>>     void __fastcall TMainForm::DisplayServerTrace (void)
>>
>>
>> Gambit
>>
>>
Technical Details
Message-ID: <4354399b$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!proxad.net!194.117.148.138.MISMATCH!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <4354113a$1@newsgroups.borland.com> <43542412$1@newsgroups.borland.com> <4354290e$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,db0c9688e1f91c26
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII
Date: Mon, 17 Oct 2005 19:58:05 -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: Re: Using Synchronize with TIdHTTPServer ...
References: <4354113a$1@newsgroups.borland.com> <43542412$1@newsgroups.borland.com> <4354290e$1@newsgroups.borland.com>
In-Reply-To: <4354290e$1@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
NNTP-Posting-Host: 207.96.139.202
Message-ID: <4354399b$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1129593243 207.96.139.202 (17 Oct 2005 16:54:03 -0700)
Lines: 53
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!proxad.net!194.117.148.138.MISMATCH!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail