Article View: borland.public.cppbuilder.internet.socket
Article #5416Re: Close down connections from the server side. Indy.
From: Remy Lebeau (TeamB)
Date: Tue, 07 Sep 2004 08:48
Date: Tue, 07 Sep 2004 08:48
39 lines
2409 bytes
2409 bytes
"Ulrik Nilsson" <di2niul@chl.chalmers.se> wrote in message news:413d624f$1@newsgroups.borland.com... > As you guessed that didn't help me. Maybe I should have told > you in the first place but I still get the "Terminate Thread Timeout" > from the server application. You never said anything about getting that error before. The only way that error can occur is if the peer threads are not terminating in a timely fashion. Given the code you have shown so far, taking into account the changes I mentioned earlier, that should never be happening. > At the moment I run both the client and server > application on the same machine. Makes no difference whether the client is on the same machine or halfay around the world.. > Well, let's say that the code in the server application is > correct. Then the problem must be in the client application. > Is there any special "trick" you should do? The client has nothing to do with the server's inability to shut down properly. > For example my close function looks like this: There is nothing wrong with that code. > Yes I do know what a constructor is. But, if you study > the examples shipped with BCB6, they also use the > OnCreate method to start the server. Ignore those examples. They are C++ translations of Delphi examples and were translated too literally. Gambit
Technical Details
Message-ID:
<413d758b$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.frii.net!newsfeed.frii.net!news.compaq.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<413cb130$1@newsgroups.borland.com> <413cbe74@newsgroups.borland.com> <413cc343$1@newsgroups.borland.com> <413cd762@newsgroups.borland.com> <413d624f$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,94b92865a961b40 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: <413cb130$1@newsgroups.borland.com> <413cbe74@newsgroups.borland.com> <413cc343$1@newsgroups.borland.com> <413cd762@newsgroups.borland.com> <413d624f$1@newsgroups.borland.com> Subject: Re: Close down connections from the server side. Indy. Date: Tue, 7 Sep 2004 01:48:51 -0700 Lines: 41 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: <413d758b$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1094546827 68.69.17.41 (7 Sep 2004 01:47:07 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.frii.net!newsfeed.frii.net!news.compaq.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail