Memory leak in dclOdac.bpl

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Freezer_86
Posts: 9
Joined: Thu 14 Feb 2013 09:11

Memory leak in dclOdac.bpl

Post by Freezer_86 » Mon 23 Jan 2017 11:40

Hi!
In my project i use own idesigner, so dcl*.bpl's is used in project too.
Found memory leak in OraDesign.pas(ODAC ver 9.6.20):

Code: Select all

{$IFNDEF FPC}
var
  Notificator: TOraDesignNotification; 
{$ENDIF}
...
  Notificator := TOraDesignNotification.Create;
  RegisterDesignNotification(Notificator);
...
  UnRegisterDesignNotification(Notificator);
Need to free object after UnRegister or declare variable as:

Code: Select all

var
  Notificator: IDesignNotification;//TOraDesignNotification;
for prevanting memory leaks.

Also ODAC show notify about new version in each client PC. There is some "embedded" directive for preventing this in normal way?

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

Re: Memory leak in dclOdac.bpl

Post by AlexP » Thu 26 Jan 2017 11:16

Hello,

Thank you for the information. We will fix MemoryLeak in the nearest version and also consider a possibility of "disabling" versions check.

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

Re: Memory leak in dclOdac.bpl

Post by AlexP » Thu 02 Feb 2017 10:45

We fixed Memory Leak and added check to run Version Checker

Post Reply