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

Вниз

KOLOLEDB memory leak ?   Найти похожие ветки 

 
Boguslaw   (2008-08-15 18:53) [0]

Hello all !

I"m not very active here but in fact I"m using KOL daily in my work.
I"m using now extensively OLEDB package from KOL to move big data to SQL Server and probably found a memory leak. I don"t know if my KOLOLEDB package is up to time so Vladimir please compare and adjust.
The leak is in Execute method : pWideChar is not freed by using SysFreeString. For small commands this is nothing but I had to move hundreds of megabytes which ended with OutOf Memory problem.

Below is fixed version.

BTW I converted MemCheck to KOL but cannot force it to work. It compiles fine.Anybody willing to help ? I think it would be very nice addition to KOL to remove all memleaks in KOL programs easily.

procedure TQuery.Execute;
var
fWText : PWideChar;
begin
 ClearRowset;
 fWText := StringToOleStr( fText );
 // first set txt to fCommand just before execute
 if CheckOLE( fCommand.SetCommandText( @DBGUID_DBSQL, fWText ) ) then
   CheckOLE( fCommand.Execute( nil, IID_NULL, nil, @fRowsAffected, nil ) );
 SysFreeString(fWText);
end;


 
Boguslaw   (2008-08-25 19:02) [1]

Fixed ????


 
exero   (2008-08-25 20:12) [2]

FastMM4 work fine



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

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

Наверх




Память: 0.44 MB
Время: 0.069 c
2-1273162517
Grumd
2010-05-06 20:15
2010.08.27
Поиск строки в переменной типа string


2-1271756786
lordalex
2010-04-20 13:46
2010.08.27
как создать "нужный" пакет SOAP-WSDL


15-1265651858
OneYoungMan
2010-02-08 20:57
2010.08.27
Речевое общение


15-1272738123
Pavia
2010-05-01 22:22
2010.08.27
утечка конфиденцальных данных


15-1268240454
БарЛог
2010-03-10 20:00
2010.08.27
Что-то вроде УПС, но на короткое время





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
Английский Французский Немецкий Итальянский Португальский Русский Испанский