TDbLookupCombo causes segfault if associated dataset is closed and reopened
Original Reporter info from Mantis: luca @olivluca
-
Reporter name: Luca Olivetti
Original Reporter info from Mantis: luca @olivluca
- Reporter name: Luca Olivetti
Description:
The segfault is in method TDbLookup.ListFieldValue that is called right after FListField has been assigned to nil.
The attached patch fixes it, however I think it's just a hack and what's wrong is the underlying chain of events (I think FListField should be updated only if the dataset associated to ListSource changes, regardless of the dataset associated to DataSource, however fixing it right is out of my reach).
Steps to reproduce:
Run the attached program and click the CrashMe button.
Mantis conversion info:
- Mantis ID: 13950
- Build: 20567
- Version: 0.9.27 (SVN)
- Fixed in version: 0.9.27 (SVN)
- Fixed in revision: 20683 (#516a894c)
- Monitored by: » luizamerico (Luiz Americo), » dopidaniel (Daniel Simões de Almeida)
- Target version: 0.9.28