Forum > General

TINIFile Sig SegV

<< < (2/2)


--- Quote from: alejol0 on August 19, 2010, 10:22:58 pm ---I have encountered that Lazarus needs  one or two blank lines
or lines commented in the first of the file.
I have trouble reading first INI key values if the .INI file do not have these two "dummy" lines.

--- End quote ---
Could be that you have a BOM byte in the file. The FCL inifile implementation doesn't handle that, as far as I can see


--- Quote from: Laksen on August 19, 2010, 11:48:09 pm ---Could be that you have a BOM byte in the file.
--- End quote ---
One of the worst 'inventions' ever and almost undetectable because if present, even editors like notepad will not give you any warning about it's presence.

If you only use TInifile methods to create and populate the file, there shouldn't be any problem.


[0] Message Index

[*] Previous page

Go to full version