[Lazarus] TIniFile bug?

Michael Van Canneyt michael at freepascal.org
Tue May 18 14:28:01 CEST 2010


Probably caused by:

------------------------------------------------------------------------ 
r15280 | Almindor | 2010-05-16 12:35:42 +0200 (Sun, 16 May 2010) | 2 lines

* apply quoting patch for inifile from A. Klein

------------------------------------------------------------------------

Please enter a bug report in the FPC bugtracker (not Lazarus bugtracker).

Michael.


On Tue, 18 May 2010, Kjow wrote:

> I have a problem with TIniFile, it doesn't work.
> Until some revisions ago (2-3 days) no problem, but from yesterday it
> doesn't work anymore.
>
> ...
>  FileINI :  TIniFile;
> ...
> FileCFG:= 'data.ini';
> ...
>  FileINI := TIniFile.Create(FileCFG);
>  FileINI.UpdateFile;
>  try
>    var1 := FileINI.ReadInteger('sect1','data1',10); //always return 10
>    var2 := FileINI.ReadInteger('sect1','data2',11); //always return 11
>    var3 := FileINI.ReadInteger('sect2','data3',12); //always return 12
>    var4 := FileINI.ReadInteger('sect2','data4',13); //always return 13
>  finally
>    FileINI.Free;
>  end;
> ...
>
>
> Thanks!
>
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>




More information about the Lazarus mailing list