[fpc-devel] Rather large flaw in TJSONConfig component

Graeme Geldenhuys graemeg.lists at gmail.com
Mon Jun 21 16:10:38 CEST 2010


Op 2010-06-21 15:34, Henry Vermaak het geskryf:
> 
> Seriously, would you try the same thing with a file?

Seriously, you would want to tell developers in todays times that they
can't concurrently access a file?


> Programs that want to write to the same json file from
> different classes need to handle this properly, just like they would
> have to when using files.

Unfortunately TJSONConfig and TXMLConfig encapsulates the file handling -
it's not available to the developer to change. So the file handling fix
needs to occur in these components themselves.

Lazarus IDE even makes the TXMLConfig component available to developers on
the System component palette - ready to be dropped on any form. All without
the warning of potential data loss (even with StartEmpty = False)!


Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://opensoft.homeip.net/fpgui/




More information about the fpc-devel mailing list