Article View: borland.public.cppbuilder.internet.socket
Article #79Re: TNMHTTP vs. TIdHTTP
From: Remy Lebeau (TeamB)
Date: Tue, 22 Apr 2008 00:13
Date: Tue, 22 Apr 2008 00:13
34 lines
2189 bytes
2189 bytes
"Carlos Moreno" <moreno_h3gd@mochima.com> wrote in message news:480d16b3$1@newsgroups.borland.com... > With TNMHTTP, the above was working flawlessly; it's on a > separate thread, so it does not block the GUI. In particular, > if I have multiple downloads going on concurrently, I see them > appear one by one. That should also be the case with TIdHTTP. I use TIdHTTP myself in separate threads and it works fine for me. > However, with the Indy HTTP control, it would seem like it > does block everything No, it would not. > 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). Then you are somehow deadlocking the code that is running in the main thread. That has nothing to do with TIdHTTP itself. > The HTTP control is running on a separate thread --- how > come it blocks the entire GUI? TIdHTTP does not. None of its operations are running in the main thread, so there is nothing to block. So it has to be your own code that is being called by Synchronize() that is doing something it should not be doing, and thus blocking the main thread. Gambit
Technical Details
Message-ID:
<480d2d9c$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!feeder3.cambrium.nl!feeder6.cambrium.nl!feed.tweaknews.nl!193.201.147.84.MISMATCH!feeder1.xlned.com!xlned.com!ecngs!feeder.ecngs.de!news.isoc.lu!newsgroups.borland.com!not-for-mailReferences:
<480d16b3$1@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: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.internet.socket References: <480d16b3$1@newsgroups.borland.com> Subject: Re: TNMHTTP vs. TIdHTTP Date: Mon, 21 Apr 2008 17:13:33 -0700 Lines: 36 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3138 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 NNTP-Posting-Host: 12.187.207.230 Message-ID: <480d2d9c$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1208823196 12.187.207.230 (21 Apr 2008 17:13:16 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!feeder3.cambrium.nl!feeder6.cambrium.nl!feed.tweaknews.nl!193.201.147.84.MISMATCH!feeder1.xlned.com!xlned.com!ecngs!feeder.ecngs.de!news.isoc.lu!newsgroups.borland.com!not-for-mail