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.
- Create a new GUI application
- Put a CSVDataset on the form.
- Select the CSVDataset
- In the Object Inspector, select a csv file. Mine has 5 columns, and maybe a thousand rows.
- Now set the CSVDataset.Active to true. Wait a few seconds for it to read the file.
- Now set the CSVDataset.Active to False.
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!