Combobox loses inheritance information
Original Reporter info from Mantis: tim launchbury
-
Reporter name: Timl
Original Reporter info from Mantis: tim launchbury
- Reporter name: Timl
Description:
Where a project includes the main programme and a library and both include one or more comboboxes, then when the second binary loads, the combobox produces an invalid cast exception in function GetControl in gtk2cellrenderer.pas.
Additional information:
Attached is a sample project and library to demonstrate the problem. Also attached is a diff file to show the changes I made in GetControl in gtk2cellrenderer.pas to report on what was happening.
This problem occurs on Mandriva Linux 2011 with lazarus 1.0.0 and fpc 2.6 using Gtk2.
The problem consistently occurs in the second binary attempting to use a combobox.
Mantis conversion info:
- Mantis ID: 22881
- Version: 1.0.0