hi, i am using zeos with bcb6 and a sqlite db. i am searching for memory leaks with codeguard shipped with bcb6. its not the best for it, but it is already here. however, codeguard reports many leaks by zeos in the following code lines. these two lines are reported many many times. don't know if these reports are correct, but they appear. if someone has another tool to find leaks i can test it if the leak is still present, freeware would be nice too.
------------------------------------------
Error 00047. 0x300010 (Thread 0x02CC):
Resource leak: The memory block (0x55CB13C) was never freed
The memory block (0x055CB13C) [size: 101 bytes] was allocated with SysGetMem
| system.pas line 2450:
| Result := Pointer(LongInt(Signature) + 4);
| {$ELSE}
|> Result := MemoryManager.GetMem(Size);
| if Result = nil then
| Error(reOutOfMemory);
Call Tree:
0x006DA84F(=leak.exe:0x01:2D984F) system.pas#2450
0x0058DAA1(=leak.exe:0x01:18CAA1) E:\Borland\CBuilder6\Source\ZEOSDBO\src\plain\ZPlainSqLiteDriver.pas#878
0x0055B04B(=leak.exe:0x01:15A04B) E:\Borland\CBuilder6\Source\ZEOSDBO\src\dbc\ZDbcSqLiteResultSet.pas#759
0x004FB531(=leak.exe:0x01:0FA531) E:\Borland\CBuilder6\Source\ZEOSDBO\src\dbc\ZDbcCachedResultSet.pas#1784
0x0055B954(=leak.exe:0x01:15A954) E:\Borland\CBuilder6\Source\ZEOSDBO\src\dbc\ZDbcSqLiteStatement.pas#184
0x00547D3D(=leak.exe:0x01:146D3D) E:\Borland\CBuilder6\Source\ZEOSDBO\src\dbc\ZDbcStatement.pas#1977
------------------------------------------
Error 00048. 0x300010 (Thread 0x02CC):
Resource leak: The memory block (0x5C5514C) was never freed
The memory block (0x05C5514C) [size: 49 bytes] was allocated with SysGetMem
| system.pas line 2450:
| Result := Pointer(LongInt(Signature) + 4);
| {$ELSE}
|> Result := MemoryManager.GetMem(Size);
| if Result = nil then
| Error(reOutOfMemory);
Call Tree:
0x006DA84F(=leak.exe:0x01:2D984F) system.pas#2450
0x0058DADA(=leak.exe:0x01:18CADA) E:\Borland\CBuilder6\Source\ZEOSDBO\src\plain\ZPlainSqLiteDriver.pas#881
0x0055B04B(=leak.exe:0x01:15A04B) E:\Borland\CBuilder6\Source\ZEOSDBO\src\dbc\ZDbcSqLiteResultSet.pas#759
0x004FB531(=leak.exe:0x01:0FA531) E:\Borland\CBuilder6\Source\ZEOSDBO\src\dbc\ZDbcCachedResultSet.pas#1784
0x0055B954(=leak.exe:0x01:15A954) E:\Borland\CBuilder6\Source\ZEOSDBO\src\dbc\ZDbcSqLiteStatement.pas#184
0x00558CF5(=leak.exe:0x01:157CF5) E:\Borland\CBuilder6\Source\ZEOSDBO\src\dbc\ZDbcSqLiteMetadata.pas#1422
------------------------------------------
BCB6 Zeos 6.6.1 memory leak?
Moderators: gto, cipto_kh, EgonHugeist