#10162 closed defect (invalid)

Handles leak when loading avfilter-7.dll using Delphi

Reported by: Arcardia Owned by:
Priority: normal Component: avfilter
Version: unspecified Keywords: avfilter delphi memory leak handles
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description (last modified by Arcardia)

Hi,
i currently have a problem loading/unloading the avfilter-7.dll from ffmpeg 4.22 (x86) using Delphi 2007 (also with Delphi XE3..same problem)

Each loading / unloading process of the library causes a handles leak (of type semaphores) in Windows x64 Pro for which I currently have no explanation or solution. I have already tried to upgrade to a newer version of the DLL but the leak is even worse, strangely, a very old version (avfilter-2.dll and avfilter-6.dll) is not affected by this

 dllLHandle := LoadLibrary(PAnsiChar('c:\Windows\SysWow64\AVFilter-7.dll'));
    if dllLHandle<>0 then begin
       FreeLibrary(dllLHandle);
       dllLHandle:= 0;
    end;

The code above causes an additional leak with each call

Is there something wrong, have I forgotten something?

Change History (2)

comment:1 by Arcardia, 15 months ago

Description: modified (diff)

comment:2 by Balling, 15 months ago

Resolution: invalid
Status: newclosed

Delphi 2007

Latest verion is in RAD Studio 11.2 Alexandria Architect... Your one is too old.

Note: See TracTickets for help on using tickets.