Solved

Indy: TIdTCPServer.OnDisconnect woes

Posted on 2004-09-21
3
515 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
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…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

696 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