Solved

Indy: TIdTCPServer.OnDisconnect woes

Posted on 2004-09-21
3
517 Views
Last Modified: 2010-08-05
Hi!
I use the TIdTCPServer.OnDisconnect event to write a little debug output (to a TMemo). However, if I destroy the server while clients are connected I get an excpetion: 'Terminate Thread Timeout'. I get the exception even if I synchronize the debug output with SendMessage(). Everything seems to be ok if I
  (i) use PostMessage() or
  (ii) comment out the Memo1.Lines.Add() or
  (iii) do not destroy the server but the clients
Any hints?
0
Comment
Question by:__alex
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 12

Accepted Solution

by:
Ivanov_G earned 500 total points
ID: 12110778
disconnect the clients first...
0
 
LVL 2

Author Comment

by:__alex
ID: 12110937
Duh, I expected the destructor to do this for me. Thanks!
0
 
LVL 12

Expert Comment

by:Ivanov_G
ID: 12111112
:))) always welcome.

And BTW the thing you do by yourself are better. Thus you have control over everything...
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

717 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