🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: TNMHTTP vs. TIdHTTP

#80
From: Carlos Moreno
Date: Tue, 22 Apr 2008 01:45
40 lines
2284 bytes
Dennis Cote <denniscote@gmail.com> wrote:
>Carlos Moreno wrote:
>> 
>> However, with the Indy HTTP control, it would seem like it does 
>> block everything --- I can't even grab the main window and move 
>> it;  everything freezes until *all* downloads are completed and 
>> the images do show up  (all of them simultaneously).
>> 
>> Any explanation for this?
>> 
>
>You probably need to add a TIdAntiFreeze component to your application.

Ok, this is shockingly interesting...  *AntiFreeze* component!! 
Whoh!  Seems like something taken from a Sci-Fi show!  :-)

Anyway, from the description I see in the docs, I still don't 
see how it could have anything to do with it.  Sure, the call 
to TIdHTTP::Get does block, as did the call to TNMHTTP::Get, 
but that's why I place the component in a separate thread, with 
low priority.

In the TIdAntiFreeze documentation, they say that if some of 
these blocking calls occur in the main Thread, then the GUI 
could block/freeze, and that the AntiFreeze component is useful 
to counter this effect. 

But that's the thing --- it's not in the main thread in my 
case.  Unless the HTTP control does make use of some global 
resource that in turn blocks the main thread?   (that would 
be a *major* worry, as that would seem to suggest that the 
component is inherently non-thread-safe?   Sounds strange, 
though...)


Thanks,

Carlos
--
Technical Details
Message-ID: <480d4345$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder.news-service.com!newsfeeder.dynfx.net!weretis.net!news.isoc.lu!newsgroups.borland.com!not-for-mail
References: <480d16b3$1@newsgroups.borland.com> <480d22fc@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,b9c5ec9c3a621e4
X-Google-Attributes: gid11508e,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Carlos Moreno" <moreno_h3gd@mochima.com>
Sender: "Carlos Moreno" <moreno_h3gd@mochima.com>
Reply-To: "Carlos Moreno" <moreno_h3gd@mochima.com>
Subject: Re: TNMHTTP vs. TIdHTTP
Newsgroups: borland.public.cppbuilder.internet.socket
X-User-Info: 67.142.130.37     
References: <480d16b3$1@newsgroups.borland.com> <480d22fc@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.66
Message-ID: <480d4345$1@newsgroups.borland.com>
Date: 21 Apr 2008 18:45:41 -0700
X-Trace: newsgroups.borland.com 1208828741 207.105.83.66 (21 Apr 2008 18:45:41 -0700)
Lines: 41
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder.news-service.com!newsfeeder.dynfx.net!weretis.net!news.isoc.lu!newsgroups.borland.com!not-for-mail