Главная страница
    Top.Mail.Ru    Яндекс.Метрика
Форум: "Сети";
Текущий архив: 2002.05.30;
Скачать: [xml.tar.bz2];

Вниз

утечка в Indy   Найти похожие ветки 

 
ev   (2002-03-16 13:38) [0]

Помогите! Как убрать утечку.
Вся программа работает без утечки, но как только делаю

http.Get(s_get,mStream);

s_get - строка с URL
mStream - подок для ответа

появляется утечка!!!

Если вызывать этот код несколько раз в секунду, то память "кончается" очень быстро.

Помогите!!! Как убрать эту утечку!!!


 
ev   (2002-03-16 18:16) [1]

Вот, что нашел.... но разобраться не могу.... помогите !!!

---------------------
Okay, this has caused me some trouble with a project I"m
developing so I did some messing around to see if the leak
is related to a configuration, usage, or other issue. What
I found is that if you call TIdHTTP"s .GET method and then
immediatly call it again before the first .GET method is
complete such as in a TTimer that calls a Button.click, the
method sometimes returns HTTP errors and/or access
violations plus the memory leak. However, if I
test .Connected before calling .GET and abort consecutive
calls to .GET until the prior .GET call is complete, things
seem to work fine. This was tested in Win2K with Delphi 5
and Indy 9.00.03 Beta.


 
ev   (2002-03-18 16:02) [2]

help!!!!!!!


 
Digitman   (2002-03-18 16:17) [3]

Без аглицкого - никуда))

However, if I test .Connected before calling .GET and abort consecutive calls to .GET until the prior .GET call is complete, things seem to work fine. This was tested in Win2K with Delphi 5 and Indy 9.00.03 Beta.

Однако, если я проверяю состояние св-ва .Connected перед тем, как вызвать .GET и не допускаю следующих вызовов .GET до тех пор, пока пердыдущий .GET не завершится, то, кажется, это работает отлично.


 
ev   (2002-03-18 18:54) [4]

1. .GET повторно не вызывается
2. .Connected проверять бесполезно, т.к. .GET сам его вызывает

Даже если делать, как тут говориться, то не помогает!!!
Может я что-то неправильно делаю?



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

Форум: "Сети";
Текущий архив: 2002.05.30;
Скачать: [xml.tar.bz2];

Наверх





Память: 0.45 MB
Время: 0.005 c
14-97401
DT
2002-04-22 11:52
2002.05.30
MS visual C++ vs Borland C++ builder


1-97253
Miwa
2002-05-18 14:40
2002.05.30
Access + Delphi


1-97274
Vladimir_Ishkiy
2002-05-18 14:51
2002.05.30
Нужна помощь с IE


3-97140
И.Коган
2002-05-06 17:47
2002.05.30
задача (на SQL)


4-97449
SMike
2002-03-27 20:28
2002.05.30
RichEdit





Afrikaans Albanian Arabic Armenian Azerbaijani Basque Belarusian Bulgarian Catalan Chinese (Simplified) Chinese (Traditional) Croatian Czech Danish Dutch English Estonian Filipino Finnish French
Galician Georgian German Greek Haitian Creole Hebrew Hindi Hungarian Icelandic Indonesian Irish Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian
Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Thai Turkish Ukrainian Urdu Vietnamese Welsh Yiddish Bengali Bosnian
Cebuano Esperanto Gujarati Hausa Hmong Igbo Javanese Kannada Khmer Lao Latin Maori Marathi Mongolian Nepali Punjabi Somali Tamil Telugu Yoruba
Zulu
Английский Французский Немецкий Итальянский Португальский Русский Испанский