[Lazarus] Help to find cause of crash in IDE after revision 19044

Luiz Americo Pereira Camara luizmed at oi.com.br
Sun Mar 22 14:52:14 CET 2009


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
>>> <luizmed at 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



More information about the Lazarus mailing list