Thanks for the info.  I tried to set up a thread so I can
synchronize writing to a TMemo but I get compiler errors.
Here is my code.

TTCPServerThread = class
private
  TCP1Sock : TTCPBlockSockets;
  csock : TSocket;
public
  constructor create (hsock : TSocket);
  procedure Execute; override;
  procedure WriteToScreen;
end;

procedure TTCPServerThread.WriteToScreen;
begin
  MainForm.Log.Append('Some text');
end;
procedure TTCPServerThread.execute;
begin
  synchronize(WriteToScreen);  {compiler error here}
end;

Pat

On Tue, 2007-03-27 at 23:21, Rob Schoenaker wrote:
> Sounds like a serious threading issue indeed.
> 
> *All* things you do on VCL control from any workerthread needs to be in
> a synchronized call. Please consult the help file on this.
> 
> Application.ProcessMessages should not be necessary when you do you
> looping in the worker threads.
> 
> /Rob
> 
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> synalist-public mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/synalist-public


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
synalist-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synalist-public

Reply via email to