Luiz Americo Pereira Camara escreveu: > Luiz Americo Pereira Camara escreveu: > >> Alexander Klenin escreveu: >> >> >>> On Sun, Mar 22, 2009 at 20:37, Luiz Americo Pereira Camara >>> <luiz...@oi.com.br> wrote: >>> >>> >>>> How can i know what is the property giving problem? >>>> >>>> >>> Call GetName or GetPropertyPath. >>> >>> >> Now i've got: Columns and TVirtualStringTree.Columns >> >> > > Columns is a TCollection descendant but is using a TList property > editor. The crash probably is due to the cast to TList > (TheList:=TList(GetObjectValue);) in TListPropertyEditor.ReadElementCount >
I just noticed the TCollectionPropertyEditor is a descendant of TListPropertyEditor. The crash occurs as a sigsegv in TCollectionPropertyEditor.ReadElementCount at line: if (Collection<>nil) and (Collection is TCollection) then Somehow GetObjectValue is returning wrong value Luiz _______________________________________________ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus