?
Solved

Indy: TIdTCPServer.OnDisconnect woes

Posted on 2004-09-21
3
Medium Priority
?
521 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 2000 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
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…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses
Course of the Month12 days, 7 hours left to enroll

777 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