Solved

TIdTcpServer and TIdThreadMgrPool

Posted on 2004-04-30
4
821 Views
Last Modified: 2007-12-19
Hello All,

Can somebody tell me should I use always TIdThreadMgr with TIdTcpServer?

I need simple example for correct using of it becuase sometimes when I try to disconnect server but it has some active connections it takes me error: Terminate Thread Timeout... But I does not have this error without TIdThreadMgr...

TIdTcpServer should work with unlimited connection at same time... I.e. I need to do it in the threads.

Thanks
0
Comment
Question by:dosware
  • 2
  • 2
4 Comments
 
LVL 12

Expert Comment

by:Ivanov_G
ID: 10958956

   download Indy demos. there is example about this.
   You can find the example here :

   http://www.nevrona.com/indy/demodownloads/I9D6_Demos_24Nov02.zip  

   The size is 1,553KB.
0
 

Author Comment

by:dosware
ID: 10958978
I saw it many times, I need real example.

There is only very simple examples.
0
 
LVL 12

Accepted Solution

by:
Ivanov_G earned 250 total points
ID: 10971575

   You have to disconnect all clients before disconnecting the server ...
0
 

Author Comment

by:dosware
ID: 10976357
Dear Sir,

Please tell me, do I need to do it also for TIdThreadMgrDefault?

Thanks for your reply.
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question