🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: TIdSync get variable from main thread

#1089
From: column.column
Date: Sat, 05 May 2007 07:39
24 lines
1526 bytes
I know how to get ReturnInfo from main form - I use procedure pointer that 
returns value to ReturnInfo.

procedure TLogSync.DoSynchronize;
begin
if assigned (ProceedRequest) then 
TProceedRequest(ProceedRequest)(ReturnInfo,...);
end;


Is it good do like this:

procedure TPOS_TCP.AserverSocketExecute(AContext: TIdContext);
var
mystring:string
begin
LogSync:=TLogSync.Create;
LogSync.ProceedRequest:=ProceedRequestThr;
LogSync.write(....);

mystring:= LogSync.ReturnInfo;  //I don't like this
...
LogSync.free;
end;
Technical Details
Message-ID: <463c34cb$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <463b462d@newsgroups.borland.com> <463b6a72$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,9e9a94befee4f1e1
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: <column.column@gmail.com>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <463b462d@newsgroups.borland.com> <463b6a72$1@newsgroups.borland.com>
Subject: Re: TIdSync get variable from main thread
Date: Sat, 5 May 2007 10:39:51 +0300
Lines: 27
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3028
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 82.135.244.123
Message-ID: <463c34cb$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1178350795 82.135.244.123 (5 May 2007 00:39:55 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail