[fpc-devel] Error: Unable to create "reg.xml" file
Graeme Geldenhuys
graemeg.lists at gmail.com
Fri Jan 19 13:51:31 CET 2007
On 1/19/07, Michael Van Canneyt <michael at freepascal.org> wrote:
> I fixed a bug in TInifile only yesterday. Maybe that is it.
> Loading form state should work, saving may still exhibit the problem.
Thanks, I'll get another FPC update and retest. The problem occurred
mostly at the save stage (closing a form).
> I would recommend using TIniFile anyway, even on windows.
> Using the registry is Bad (tm). At my job we started with the registry,
> but in the end moved everything to Ini files. Much more practical, and
> portable to boot.
I fully agree! I hate the registry. I have actually just completed
the change in tiOPF to rather use TIniFile under Linux, even if you
call gINI or gReg singleton functions in the tiOPF framework.
Unfortunately I can't change the gReg function under Windows as there
are other users relying on the Registry for settings.
As for my own apps and any user settings, I call gINI which stores
them in a .ini file on both Windows and Linux.
--
Graeme Geldenhuys
There's no place like S34° 03.168' E018° 49.342'
More information about the fpc-devel
mailing list