Hi there!

I'm slowly going crazy...

I thought it wouldn't be so difficult to implement the .ini support I asked for some days ago.

I only want to read the count property of a Tstrings object. But an access violation comes up. why?

here's the code:



Code:
procedure readcontentini;
var Ini: TIniFile;
    i: integer;
 begin
   Ini := TIniFile.Create('inicontent.ini');
   Ini.ReadSections(inisections);
   for i &#58;= 0 to &#40;&#40;inisections.Count&#41; - 1&#41; do begin  //<-- here
     Ini.ReadSectionValues&#40;inisections&#91;i&#93;, inivalues&#41;;
   end;
   Ini.Free;
 end;
inisections and inivalues are stringlists.

It looks like inisections is still empty when I want to read the count property... but when I read the ini sections into a normal string it works..

hope somebody can help me.

sven