Solved

Indy: TIdTCPServer.OnDisconnect woes

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
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…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

707 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now