[fpc-devel] Rather large flaw in TJSONConfig component
Henry Vermaak
henry.vermaak at gmail.com
Mon Jun 21 16:42:16 CEST 2010
On 21 June 2010 15:35, Graeme Geldenhuys <graemeg.lists at gmail.com> wrote:
> Op 2010-06-21 16:29, Henry Vermaak het geskryf:
>>
>> You can create a class that wraps all the json operations, and
>> therefore handle concurrency in one place.
>
> Correct, that's one possible solution like I mentioned with the Singleton
> design pattern. But this still leaves the door wide open for others to have
> this problem because the actual TXXXConfig component doesn't do the
> "singleton/concurrency" by itself - and not many developers seem to know
> about this issue or know about the Singleton design pattern.
My point is that this is the wrong place to build such functionality
in. How do you propose this should work from different files or
processes?
More information about the fpc-devel
mailing list