TDBLookupControl causes crash when closing form while change pending
Original Reporter info from Mantis: ludob
-
Reporter name: Ludo Brands
Original Reporter info from Mantis: ludob
- Reporter name: Ludo Brands
Description:
Modify any field in a dataset referenced by a TDBLookupControl (Datasource or ListSource), don't post changes, close the form and a runerror 210 will be raised. TField.Destroy will set its dataset.active to false. This will trigger a TFieldDataLink.ActiveChanged and eventually a TDBLookup.FetchLookupData which will do a FControlItems.Clear while FControlItems is already gone.
To reproduce, use test program in issue 0020841, change any value in master or lookup dataset and click on the X to close the window.
Mantis conversion info:
- Mantis ID: 20900
- Version: 0.9.30.1 (SVN)
- Fixed in revision: 34195 (#3608d8a0)