IDE and/or user program can crash when saving a report in the LFM and using (e.g.) a Barcode addin
Original Reporter info from Mantis: TWhyman
-
Reporter name: Tony Whyman
Original Reporter info from Mantis: TWhyman
- Reporter name: Tony Whyman
Description:
This is a classic race condition. When an add-in is added to a form (e.g. the Barcode addin) it has to register with LazReports so that its data is recognised.
When the report is loaded this occurs when the add-in is streamed in.
However, if the add-in is streamed in after a report (stored in the LFM) that references it, the add-in is not yet registered and you get an exception.
The attached diff implements a fix that defers processing of a report stored in an LFM until after loading is completed, thus giving time for the add in to be registered.
Mantis conversion info:
- Mantis ID: 19513
- Version: 0.9.30.1 (SVN)
- Fixed in version: 0.9.31 (SVN)
- Fixed in revision: 32706 (#59bfe097)
- Target version: 0.99.0