Hello all
A while ago I posted about an invalid cast
http://lazarus.freepascal.org/index.php/topic,17736.msg98671.html#msg98671 . I have done a bit more investigation, and with the command
writeln ( 'Object type is ' , LCLObject.ClassName );
at gtk2CellRenderer line 95 the following output appears
(SPECTRA:32126): Gtk-CRITICAL **: IA__gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget)' failed
(SPECTRA:32126): Gtk-CRITICAL **: IA__gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget)' failed
Object type is TComboBox.
As you can see, the object is a TComboBox, and the command ( at line 96 )
Result := LCLObject as TWinControl;
should succeed, but fails with an invalid cast exception.
Any suggestions as to how I can find the name of the offending component?
using Laz + fpc from svn each day on mandriva linux
Regards
Tim