[fpc-devel] Rather large flaw in TJSONConfig component

Henry Vermaak henry.vermaak at gmail.com
Tue Jun 22 11:17:24 CEST 2010


On 21/06/10 15:42, Henry Vermaak wrote:
> 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?

s/files/threads



More information about the fpc-devel mailing list