[fpc-pascal] Strange experience with TJsonConfig.Clear

Michael Van Canneyt michael at freepascal.org
Sat Nov 23 20:30:09 CET 2019



On Sat, 23 Nov 2019, Bart via fpc-pascal wrote:

> Hi,
>
> I experienced some strange behaviour with TJSONConfig.Clear.
> I'm using fpc 3.0.4 32-bit on Win10-64.
> (While I do have fpc trunk as well, the program is a Lazaurs GUI
> program and I don't like using Lazarus (trunk) in combination with fpc
> trunk.)
>

[snip]

>
> I was unable to reproduce the issue in a simple test program that just
> writes values to a TJSONConfig.
> (In fact I started out writing simple test programs reading and
> writing TJSONConfig before trying to attempt to convince my
> addressbook application to write to a TJSONConfig in the first place)
>
> Before you ask: my app doesn't use threads.
>
> Any thoughts on this?

Without complet code hard to say.

Sounds like you don't clear the list with persons between runs, so persons
are added ?

Michael.


More information about the fpc-pascal mailing list