Article View: borland.public.cppbuilder.internet.socket
Article #1717Multithread problem (Only one can live)
From: Daniel
Date: Fri, 01 Dec 2006 16:11
Date: Fri, 01 Dec 2006 16:11
11 lines
1226 bytes
1226 bytes
Hello,
I have a multithread class TPull (class TPull : public TThread).
This thread will create a new TClientSocket instance and pull data from
websites.
My application will make 3 different instances of class TPull, but
after the program running a while, there is only 1 instance left, rest 2
just never show up again. I check all websites, they are all good.
Can anyone help me out?
Thanks
Daniel
Technical Details
Message-ID:
<457054ad$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news3.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 11508e,831a9644a9759323,start X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Fri, 01 Dec 2006 11:11:20 -0500 From: Daniel <mzeng@eesensors.com> User-Agent: Thunderbird 1.5.0.8 (Windows/20061025) MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.internet.socket Subject: Multithread problem (Only one can live) Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 24.75.32.9 Message-ID: <457054ad$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1164989613 24.75.32.9 (1 Dec 2006 08:13:33 -0700) Lines: 11 Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news3.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail