Page 1 of 1

odac 9.6.20 - bcb xe8 - memory leaks

Posted: Mon 28 Sep 2015 07:13
by albourgz
Hi,
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);
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.

Re: odac 9.6.20 - bcb xe8 - memory leaks

Posted: Wed 30 Sep 2015 05:48
by AlexP
Hello,

Thank you, we have reproduced the described problem and will investigate the reason for such behavior.

Re: odac 9.6.20 - bcb xe8 - memory leaks

Posted: Fri 16 Oct 2015 07:45
by albourgz
Any idea about the fix release date?

Re: odac 9.6.20 - bcb xe8 - memory leaks

Posted: Mon 19 Oct 2015 11:05
by AlexP
This problem is not yet fixed. We will try to fix the problem till the new version release.

Re: odac 9.6.20 - bcb xe8 - memory leaks

Posted: Mon 19 Oct 2015 11:12
by albourgz
Do you have any idea of the next release date?

Re: odac 9.6.20 - bcb xe8 - memory leaks

Posted: Fri 23 Oct 2015 10:41
by AlexP
We plan to release a new version next month.