Skip to content

Strange leak detected with TClientDataSet #61

@Mozzg

Description

@Mozzg

Hello.

I've encountered strange leak, while using FastMM5. I'm using RAD Studio 11.3 Patch 1.
Steps to reproduce:

  1. Create new Vcl application.
  2. Add TClientDataSet to created form.
  3. Enter fields editor in TClientDataSet, add an Integer field with any name.
  4. RMB on ClientDataSet and click "Create DataSet".
  5. In project settings add conditional defines FastMM_EnableMemoryLeakReporting and FastMM_ShareMM.
  6. Run and close the application.

After this steps you will have 10 memory leaks of type Unknown.
I've tried to inspect call stack for memory allocations, but it seemed corrupted. I was using debug library recompiled with madExcept at first, later I used precompiled debug library but in both cases call stacks didn't make much sense.
I reproduced this leak in 2 different work applications and in new application. Maybe I'm using defines wrong, but for me the setup looks like a normal work environment. Define FastMM_ShareMM and creating or loading local data to TClientDataSet together seem to trigger this leak. Clearing local data in ClientDataSet removes the leaks.
Also I've tried reproducing this with FastMM4, but couldn't. Seems like it is exclusive to FastMM5.

Am I doing something wrong? Is it a bug somewhere? Can anyone reproduce it?

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions