Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2015-06

StringGrid.loadFromCSVFile question

6 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Koenraad Lelong

Hi,

A few months ago I made an application that uses
StringGrid.LoadFromCSVFile. This worked.
Now, on a PC with a newer linux-OS, and a newer Lazarus/FPC, I try to work further on that application but now the application from the original sources crashes. It seems it can no longer automatically append lines to a stringgrid. Error : index out of range Cell[Col=0, Row=x]. When I manually append lines (= in the IDE) the application can load some more lines, but crashes when the grid-lines are all used.

I found in the stringgrid.options goAutoAddRows and set this to true. No help.
I set goAutoAddRowsSkipContentCheck to true, no help.

Am I missing something ?

I made lazarus with fpc-up. Lazarus about says : fpc-version 2.6.5, svn revision 48926.

Any help ?

Koenraad.

Reply by email

Bart
to Koenraad Lelong
Koenraad Lelong wrote 9 lines
A few months ago I made an application that uses StringGrid.LoadFromCSVFile. This worked. Now, on a PC with a newer linux-OS, and a newer Lazarus/FPC, I try to work further on that application but now the application from the original sources crashes. It seems it can no longer automatically append lines to a stringgrid. Error : index out of range Cell[Col=0, Row=x]. When I manually append lines (= in the IDE) the application can load some more lines, but crashes when the grid-lines are all used.

Please attach a sample program and sample .csv to demonstrate the problem. Keep it as simple as possibe (1 grid, 1 button should suffice).

Bart

Reply by email

Koenraad Lelong
to Bart

Op 01-06-15 om 15:30 schreef Bart:

Show quoted text 17 lines
On 6/1/15, Koenraad Lelong wrote: > A few months ago I made an application that uses > StringGrid.LoadFromCSVFile. This worked. > Now, on a PC with a newer linux-OS, and a newer Lazarus/FPC, I try to > work further on that application but now the application from the > original sources crashes. It seems it can no longer automatically append > lines to a stringgrid. Error : index out of range Cell[Col=0, Row=x]. > When I manually append lines (= in the IDE) the application can load > some more lines, but crashes when the grid-lines are all used. > Please attach a sample program and sample .csv to demonstrate the problem. Keep it as simple as possibe (1 grid, 1 button should suffice). Bart

I think I better open a bug-report.
I found what's the problem : I use two fixed rows. When I tried to make that sample program I was surprised the minimal version worked, but then I added a second fixed row, and then it crashed also.

Koenraad.

Reply by email

Bart
to Koenraad Lelong
Koenraad Lelong wrote 6 lines
I think I better open a bug-report. I found what's the problem : I use two fixed rows. When I tried to make that sample program I was surprised the minimal version worked, but then I added a second fixed row, and then it crashed also.

OK, but also there attach sample project + "offending" .csv file so we can reproduce.

Bart

Reply by email

Koenraad Lelong
to Bart

Op 02-06-15 om 12:30 schreef Bart:

Show quoted text 14 lines
On 6/2/15, Koenraad Lelong wrote: > I think I better open a bug-report. > I found what's the problem : I use two fixed rows. > When I tried to make that sample program I was surprised the minimal > version worked, but then I added a second fixed row, and then it crashed > also. > OK, but also there attach sample project + "offending" .csv file so we can reproduce. Bart

Bug ID = 0028230

Koenraad

Reply by email