Lazarus

Programming => Databases => Topic started by: wmeyer on January 13, 2021, 07:56:17 pm

Title: Major problem with CSVDataset
Post by: wmeyer on January 13, 2021, 07:56:17 pm
I am new to Lazarus, but a long time Delphi dev. I have noticed a problem with the CSVDataset component, and have minimized the steps needed to reproduce.
In a few seconds, the IDE will crash. Simple and repeatable.

If I add a TDataSource and a VirtualDBGrid, and set Active in the OnFormCreate event, it works fine, reads the file, presents the data.

So the file is fine (verified in other apps, as well as by inspection in Notepad++). And as the TDataSource and the VirtualDBGrid are not needed to illustrate the problem, it is clearly a defect of the component itself.

My OS is Windows 10 64-bit. I am using Lazarus 2.0.10, installed from a fresh download just a few days ago.

Thanks!
Title: Re: Major problem with CSVDataset
Post by: dseligo on January 13, 2021, 09:50:38 pm
Confirmed, same OS and same Lazarus version.

You should report bug I guess.
Title: Re: Major problem with CSVDataset
Post by: wp on January 13, 2021, 10:14:29 pm
I had reported this two years ago (https://bugs.freepascal.org/view.php?id=34435), it was fixed, and the test project that I had added is working now (same Windows, same Laz). 

I can confirm, however, that the IDE crashes when Active is set to false. Yes, please file a bug report, and refer to my report.

[EDIT]
I tested also with fpc 3.3.1 and see the issue there, too.
Title: Re: Major problem with CSVDataset
Post by: wmeyer on January 13, 2021, 11:12:16 pm
Reported in 38352.  Reference to yours has already been added.
TinyPortal © 2005-2018