On 21 June 2010 15:35, Graeme Geldenhuys <[email protected]> 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? _______________________________________________ fpc-devel maillist - [email protected] http://lists.freepascal.org/mailman/listinfo/fpc-devel
