odac 9.6.20 - bcb xe8 - memory leaks
Posted: Mon 28 Sep 2015 07:13
Hi,
Using c++ builder XE8 pro, vcl to generate win32 applications.
I converted existing app using:
On small sample (unit test): works fine.
BUT when embedded into a huge app, I get memory leaks that don't occur when I don't use ValueCount.
Should I clear Values after use? How? (method Values->Clear() isn't accepted at compile-time).
Regards.
Using c++ builder XE8 pro, vcl to generate win32 applications.
I converted existing app using:
Code: Select all
if (!FDM->QLog->Prepared) {
FDM->QLog->Prepare();
for (j=0; j<9; j++) {
FDM->QLog->Params->Items[j]->ParamType=ptInput;
FDM->QLog->Params->Items[j]->DataType =ftInteger;
}
}
FDM->QLog->Params->ValueCount=aBatch.Length;
for (i=0; i<aBatch.Length; i++) {
FDM->QLog->Params->Items[0]->Values[i]->AsInteger = ...;
FDM->QLog->Params->Items[1]->Values[i]->AsInteger = ...;
....
}
FDM->QLog->Execute(aBatch.Length);
BUT when embedded into a huge app, I get memory leaks that don't occur when I don't use ValueCount.
Should I clear Values after use? How? (method Values->Clear() isn't accepted at compile-time).
Regards.