Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 848
  • Last Modified:

TIdTcpServer and TIdThreadMgrPool

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
dosware
Asked:
dosware
  • 2
  • 2
1 Solution
 
Ivanov_GCommented:

   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
 
doswareAuthor Commented:
I saw it many times, I need real example.

There is only very simple examples.
0
 
Ivanov_GCommented:

   You have to disconnect all clients before disconnecting the server ...
0
 
doswareAuthor Commented:
Dear Sir,

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

Thanks for your reply.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now