🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Using Synchronize with TIdHTTPServer ...

#3340
From: Remy Lebeau (TeamB)
Date: Tue, 18 Oct 2005 00:19
42 lines
2432 bytes
"noel" <noel@teledata.qc.ca> wrote in message
news:4354290e$1@newsgroups.borland.com...

> My example code was wrong ...

For future reference, please ALWAYS copy/paste your actual code as-is.
Don't re-type it manually.  It leads to too many mistakes and
misunderstandings.

> Link error : Member function must be called or its address taken

That is not a linker error.  That is a compiler error.  Compiling and
Linking are two very separate operations.

> AThread -> Synchronize (DisplayServerTrace);
> or
> AThread -> Synchronize ((TThreadMethod) DisplayServerTrace);

There is no possible way for that code, with or without the correction, to
cause that particular error.  I have seen TIdThread::Synchronize() cause
"Could not found match for..." errors before, but there is no reason for
your particular error to occur.

> Now this:
> AThread -> Synchronize (DisplayServerTrace);
> ... links OK but of course doesn't work properly ...

Look at that line again, and then look further above.  That is the EXACT
same line that you said is erroring.

> That's why i suspected something wrong int the redeclaration
> of the Synchronize () in TidThread ... (?)

Try commenting out the TMethod overloaded version of Synchronize() in
IdThread.hpp.

The alternative is to use a TIdSync-derived class instead of using
TIdThread::Synchronize().


Gambit
Technical Details
Message-ID: <43543f9c$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!newsfeed2.dallas1.level3.net!news.level3.com!newsfeed.gamma.ru!Gamma.RU!newsfeed.rtcomm.ru!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!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-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <4354113a$1@newsgroups.borland.com> <43542412$1@newsgroups.borland.com> <4354290e$1@newsgroups.borland.com>
Subject: Re: Using Synchronize with TIdHTTPServer ...
Date: Mon, 17 Oct 2005 17:19:21 -0700
Lines: 44
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.69.17.41
Message-ID: <43543f9c$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1129594780 68.69.17.41 (17 Oct 2005 17:19:40 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!newsfeed2.dallas1.level3.net!news.level3.com!newsfeed.gamma.ru!Gamma.RU!newsfeed.rtcomm.ru!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail