Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Dec : Re: closing an application over the network

www.cryer.info
Managed Newsgroup Archive

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 13:55:25

"soonic" <xxsoonic@op.pl> wrote in message
news:476c2a26@newsgroups.borland.com...

> I changed for what you said (but it changed nothing)

What exactly happened?  Did the message handler get triggered at all?

> const   WM_MYMSG = WM_USER + 1000;

Try using WM_APP instead of WM_USER.

> Probably you're right at here.
> So, when it calls my FormShow, it look as fallows:
> (real code)
<snip>

>      IdTCPClient.DisconnectSocket;

Use Disconnect() instead.

>      if not Terminated then Synchronize(UpdateGrid);  //on exception here

What type of exception is being thrown exactly?  What is its class name?
What does its Message say?

You are not making this easy to diagnose your problem.  Can you trim out all
of the irrelevant code and just provide a bare-bones example that reproduces
teh same problem?


Gambit

Replies:

In response to:

www.cryer.info
Managed Newsgroup Archive