🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Unresolved external 'Idantifreeze::TIdAntiFreeze:

#2901
From: Remy Lebeau (TeamB)
Date: Fri, 06 Jan 2006 02:30
35 lines
2115 bytes
"Liu Shan" <liushan@ps-electronic.com> wrote in message
news:43bdcbd3$1@newsgroups.borland.com...

> Where can I  get the version 9.0.50?

The link to the Development Snapshot is on the same page as 9.0.17.

> I read doc said TIdAntiFreeze can use to prevent User
> Interface being frozen

That only applies to blocking operation that are performed in the context of
the main thread, which is the thread that controls the GUI.

> if is little effect, then how to do?

You don't need to use TIdAntiFreeze with server components.  Indy server
components are multi-threaded.  Almost all server operations are performed
outside of the main thread.

> I look at the demo program that wrote in Pascal

Which demo are you referring to?  There are several different ones.

> Warning: cannot convert void to AnsiString.

TList is a list of void* pointers.  You cannot convert a void* pointer to a
string.  The TList object that IdPorts() returns contains integer values
that are stored as void* pointers.  Simply cast the pointers back to
integers, ie:

    cboPorts->Items->Add(reinterpret_cast<int>(PortList->Items[i]));


Gambit
Technical Details
Message-ID: <43bdd68e@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!212.101.4.254.MISMATCH!solnet.ch!solnet.ch!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <43bcec76$1@newsgroups.borland.com> <43bd5f66$1@newsgroups.borland.com> <43bdcbd3$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
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <43bcec76$1@newsgroups.borland.com> <43bd5f66$1@newsgroups.borland.com> <43bdcbd3$1@newsgroups.borland.com>
Subject: Re: Unresolved external 'Idantifreeze::TIdAntiFreeze:
Date: Thu, 5 Jan 2006 18:30:30 -0800
Lines: 37
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.69.17.41
Message-ID: <43bdd68e@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1136514702 68.69.17.41 (5 Jan 2006 18:31:42 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!212.101.4.254.MISMATCH!solnet.ch!solnet.ch!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail