Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2003.06.26;
Скачать: CL | DM;

Вниз

TIdTelnet   Найти похожие ветки 

 
alt7   (2003-04-21 16:09) [0]

При дисконнекте постоянно появляется raise exception: ля-ля Disconnected gracefully. Причем после вызова Disconnect лезет в обработчик OnDataAvailable, видимо видит какие-то данные в ReadBuffer"e и после этого появляется то окно. Каким образом и где можно от него избавиться


 
$hade ©   (2003-04-21 16:32) [1]

Why do I keep getting EIdConnClosedGracefully exceptions?

For Servers

The client has disconnected the socket normally and this exception is used to notify the server handling code. From the IDE just hit F9 to resume program execution and Indy will catch and handle the exception.

For Clients

The server side of this connection has disconnected normally but your client has attempted to read or write to the connection. You should trap this error using a try..except or in C++ Builder, a try..catch block.

There is more detail about the EIdConnClosedGracefully exception in an article at the Indy Portal titled Connection Closed Gracefully.


 
alt7   (2003-04-21 16:43) [2]

Пасибо, сам бы ввек не додумался. Ведь вроде и пишут что gracefully а вроде и Exception вылетает


 
$hade ©   (2003-04-21 16:51) [3]

Блин!! Ты зайди на www.indyproject.org
перечитай все...))
Exception - это часть их жизни...:-) где то я у них прочитал
Exception is not error,but exception. (чет типа того...)
делай как они говорият(try..except) и все будет ОК.
ведь и правда - это же не ОШИБКА а исключение...



Страницы: 1 вся ветка

Текущий архив: 2003.06.26;
Скачать: CL | DM;

Наверх




Память: 0.47 MB
Время: 0.018 c
14-84684
Дмитрий К.К.
2003-06-11 06:23
2003.06.26
Именинники 11 июня


14-84529
_Peacemaker
2003-06-06 18:06
2003.06.26
Поговорите со мной


1-84340
yaJohn
2003-06-16 12:08
2003.06.26
_быстрый_ TMemo с раскраской отдельных строк


14-84621
DiamondShark
2003-06-04 12:09
2003.06.26
Supreme2 открыл сайт.


3-83884
_Narayan_
2003-06-02 22:42
2003.06.26
GROUP BY