odac 9.6.20 - bcb xe8 - memory leaks

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
albourgz
Posts: 160
Joined: Wed 06 May 2009 12:17
Location: belgium

odac 9.6.20 - bcb xe8 - memory leaks

Post by albourgz » Mon 28 Sep 2015 07:13

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.

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: odac 9.6.20 - bcb xe8 - memory leaks

Post by AlexP » Wed 30 Sep 2015 05:48

Hello,

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

albourgz
Posts: 160
Joined: Wed 06 May 2009 12:17
Location: belgium

Re: odac 9.6.20 - bcb xe8 - memory leaks

Post by albourgz » Fri 16 Oct 2015 07:45

Any idea about the fix release date?

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: odac 9.6.20 - bcb xe8 - memory leaks

Post by AlexP » Mon 19 Oct 2015 11:05

This problem is not yet fixed. We will try to fix the problem till the new version release.

albourgz
Posts: 160
Joined: Wed 06 May 2009 12:17
Location: belgium

Re: odac 9.6.20 - bcb xe8 - memory leaks

Post by albourgz » Mon 19 Oct 2015 11:12

Do you have any idea of the next release date?

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: odac 9.6.20 - bcb xe8 - memory leaks

Post by AlexP » Fri 23 Oct 2015 10:41

We plan to release a new version next month.

Post Reply