#1 Re: mORMot 1 » _jsonfast memory leak » 2017-11-01 18:10:05

Some further information... my test was in a console app, so the _jsonfast call was in a .dpr file. When I restructured a bit and moved the _jsonfast statement to reside within a Delphi unit (.pas) that is simply called by the console app, the memory  leak went away.

#2 mORMot 1 » _jsonfast memory leak » 2017-10-31 23:44:51

bude
Replies: 2

Trying to sort out a memory leak, and I think I've narrowed it down to how I'm parsing Json. If I create a Delphi app that consists of nothing but this 1 statement:

_jsonfast('{"s": ""}');

It leaks (FASTMM4) 1 AnsiString object and 2 Unknown objects. If I change the statement to:

_jsonfast('{"s": "", "t": ""}');

Then the leak is 2 AnsiStrings and 2 Unknowns.

Is there some time of finalization one has to do when using _jsonfast?

Bud
(Delphi 2007 - latest  a44cc62 commit of mORMot)

Board footer

Powered by FluxBB