Главная страница
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.46 MB
Время: 0.32 c
2-1274965464
integer
2010-05-27 17:04
2010.08.27
подключитсо к nokia через usb и получить текст всех СМС


15-1272627412
12
2010-04-30 15:36
2010.08.27
EDBEngineError. Cannot load driver. Что можно сделать?


4-1235818874
Denied
2009-02-28 14:01
2010.08.27
Хуки и PostMessage в Vista


3-1239901324
Мазут Береговой
2009-04-16 21:02
2010.08.27
Хранимые процедуры и параметры с UNICODE


15-1271146921
Mystic
2010-04-13 12:22
2010.08.27
Тест на механическую интуицию (70 вопросов)