TCustomBufDataset.InternalClose method crashes in case of TSQLQuery.IndexFieldNames not empty
Original Reporter info from Mantis: sgolubev33
-
Reporter name: Sergey Golubev
Original Reporter info from Mantis: sgolubev33
- Reporter name: Sergey Golubev
Description:
I've faced with problem of crushing my application when it calling TSQLQuery class object method Close after using of method CancelUpdates. In case of dataset hase no records.
After tracing of method Close, I've found line of code, where crush happend.
It is TCustomBufDataset.InternalClose method line number 1194.
After some experiments I've found, if I leaving property IndexFieldNames empty, application does not crushes.
Steps to reproduce:
You can reproduce it using attached zipped project. It uses statndard EMPLOYEE.FDB database. You just have to have change path to EMPLOYEE.FDB file in IBConnection1 object.
Steps to reproduce:
- Run project
- Press Add button
- Fill some data into fields
- Press 'Cancel' button
- Close application window
- See crash message