Shutting down application problems

Giganews Newsgroups
Subject: Shutting down application problems
Posted by:  Rick (aso3ri…@hotmail.com)
Date: Wed, 7 Jun 2006

Hi,

How to shut down an application with a TCP indy client running properly? If
I shut, I get this error:
    socket error 10093
From what I know, it has something to do with forgetting to initialize
something. But in my case the program was already running. Now I want to
shut it:

procedure    shut;
begin
      // client.disconnect;
        client.destroy;
        application.terminate;
end;

If I also execute disconnect, I get an access violation right after that
line (also tried it with disconnectSocket). So... what am I doing wrong?

Greetings,
Rick

Replies