🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #2906

Re: Unresolved external 'Idantifreeze::TIdAntiFreeze:

#2906
From: Liu Shan
Date: Mon, 09 Jan 2006 01:39
48 lines
2513 bytes
Very thanks.

>    for (i=0; i< lbIPs->Count-1; i++)
>
> To this instead:
>
>    for (i=0; i< lbIPs->Count; i++)

Sorry, that is my mistack.

But once I run the code below, I always got result = false, so I still 
cannot start server. After that, I close my server app, I always got error 
"Project server.exe raise exception class EAccessViolation with Message 
'Access violation at address 40006834 .....", please help, thanks.

for (i=0; i< lbIPs->Count; i++)
{
    bChk = lbIPs->Checked[i];
    if (bChk)
    {
         Binding = IdTCPServer->Bindings->Add();
         Binding->IP = lbIPs->Items->Strings[i];
         Binding->Port = StrToInt(edtPort->Text);
         SL->Append("Server bound to IP " + Binding->IP + " on port " + 
edtPort->Text);
     }
}


if (bChk)
{
    IdTCPServer->Active = true;
    result = IdTCPServer->Active;  //result = false, seems cannot active 
IdTCPServer
    fServerRunning = result;
    lbProcesses->Items->AddStrings(SL);

    if (result)
    {
         lbProcesses->Items->Append("Server started");
         StatusBar->SimpleText = "Server running";
    }
    else
    {
         lbProcesses->Items->Append("Server stopped");
         StatusBar->SimpleText = "Server stopped";
    }
}
Technical Details
Message-ID: <43c1be5a$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news3.google.com!news.glorb.com!newsfeed.cw.net!cw.net!news-FFM2.ecrc.de!skynet.be!grolier!194.74.65.66.MISMATCH!news-peer0-test!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <43bcec76$1@newsgroups.borland.com> <43bd5f66$1@newsgroups.borland.com> <43bdcbd3$1@newsgroups.borland.com> <43bdd68e@newsgroups.borland.com> <43be37e8@newsgroups.borland.com> <43bebfd0$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,a9ad1d742dfc75bf
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
Reply-To: "Liu Shan" <liushan@ps-electronic.com>
From: "Liu Shan" <liushan@ps-electronic.com>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <43bcec76$1@newsgroups.borland.com> <43bd5f66$1@newsgroups.borland.com> <43bdcbd3$1@newsgroups.borland.com> <43bdd68e@newsgroups.borland.com> <43be37e8@newsgroups.borland.com> <43bebfd0$1@newsgroups.borland.com>
Subject: Re: Unresolved external 'Idantifreeze::TIdAntiFreeze:
Date: Mon, 9 Jan 2006 09:39:40 +0800
Lines: 51
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 219.74.18.145
Message-ID: <43c1be5a$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1136770650 219.74.18.145 (8 Jan 2006 17:37:30 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news3.google.com!news.glorb.com!newsfeed.cw.net!cw.net!news-FFM2.ecrc.de!skynet.be!grolier!194.74.65.66.MISMATCH!news-peer0-test!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail