Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Nov : Re: Problem with writing the network game

www.cryer.info
Managed Newsgroup Archive

Re: Problem with writing the network game

Subject:Re: Problem with writing the network game
Posted by:"Remy Lebeau (TeamB)" (no.spam@no.spam.com)
Date:Sun, 18 Nov 2007 13:08:47

"UWork" <uwork@ua.fm> wrote in message
news:47402b56$1@newsgroups.borland.com...

> This is a part of code with comments:

You did not show your server code, which is where the real problem is likely
at.

>       fMain.Label2.Caption:=fMain.Label2.Caption+'+';// for 'mini-log' :)

That is not thread-safe.  You must use Synchronize() in order to access all
UI controls safely.

>       fMain.IdTCPClient1.ReadStrings(UpdateInfo);
> When performing mini-log shows that program does not pass hereinafter this
line

Then the server has likely stopped sending data to the client.  Which is all
the more reason why you need to show the actual server code


Gambit

Replies:

In response to:

www.cryer.info
Managed Newsgroup Archive