Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Dec : Re: closing an application over the network
| Subject: | Re: closing an application over the network |
| Posted by: | "Remy Lebeau (TeamB)" (no.spam@no.spam.com) |
| Date: | Fri, 21 Dec 2007 12:12:20 |
"soonic" <xxsoonic@op.pl> wrote in message
news:476c1b4f@newsgroups.borland.com...
> When I use 'Postmessage' then the line 'Synchronize(MainForm.Terminate);'
> fires up.
How exactly are you calling PostMessage()? Obviously, you are trying to
access something that does not exist, or you wouldn't be getting an
exception.
Notice in my earlier example that I use PostThreadMessage() instead of
PostMessage(). Did you try PostThreadMessage() yet?
> I don't get this when client application starts normally with FormShow.
Then clearly you are not setting everything up correctly at program startup
when using the tray icon.
> When the client is connected to server then the server sends some
> packets of data (like 3 or 4), and only the first one gets to the client.
That is not relevant to this anymore. The problems you are having are not
related to your socket connection.
> There is a problem with this message handler which I use because my
> application works fine if it doesn't start from tray and doesn't use msg
> handler.
Then you have not set everything up properly. Please show all of your
relavant code.
Gambit