Newsgroups : Borland : borland.public.delphi.internet.winsock : 2005 Apr : TIdTPCServer - AV on shutdown

www.cryer.info
Managed Newsgroup Archive

TIdTPCServer - AV on shutdown

Subject:TIdTPCServer - AV on shutdown
Posted by:"Adrien Reboisson" (adrien-reboissonatastasedotc..@astase.com)
Date:5 Apr 2005 01:55:33

Hi,

I installed Indy 10 on D7 with Indy Plus Installer (Indy's
version : 10.0.75). When I try to shutdown my TIdTCPServer an AV
is raised. I tried to reproduce this bug by creating a new
project, dropping a TIdTCPServer on my form, doing something in
the OnExecute event handler and running the application. Same
result. The AV still raised in TIdListenerThread.Run :


      // Must terminate - likely has not started yet
      if LYarn <> nil then begin
        Server.Scheduler.TerminateYarn(LYarn); <= Here

In TerminateYarn, it's the FreeAndNil instruction which raises
the access violation :

    LYarn.Thread.Free;
    FreeAndNil(LYarn); <= AV here

Detailled description :

Le projet Project1.exe a provoqué une classe d'exception
EAccessViolation avec le message 'Access violation at address
00000000. Read of address 00000000'.  Processus stoppé. Utilisez
Pas-à-pas ou Exécuter pour continuer.

I've done something wrong or this is a know bug of the last Indy
Plus Install package ?

Regards,

A.R.

Replies:

www.cryer.info
Managed Newsgroup Archive