Solved

Indy: TIdTCPServer.OnDisconnect woes

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

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Virtuailstring tree add node to another virtuailstring tree list 4 115
Create a path if not exists 7 77
Delphi inherited method 6 70
DBCtrlGrid, Delphi, Scroll 8 15
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 Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

803 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