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

2009-03-22 Thread Alexander Klenin
As a general design note, I think that PropertyEditor.GetAttributes function should be split into static and dynamic parts, where static part supplies type-specific attributes, and dynamic -- value-specific ones. -- Alexander S. Klenin ___ Lazarus

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

2009-03-22 Thread Alexander Klenin
On Sun, Mar 22, 2009 at 16:37, Alexander Klenin kle...@gmail.com wrote: 1) apply the attached patch I somehow managed to save incorrect patch. Please use this version instead. -- Alexander S. Klenin Index: propedits.pp === ---

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

2009-03-22 Thread Luiz Americo Pereira Camara
Alexander Klenin escreveu: On Sun, Mar 22, 2009 at 16:37, Alexander Klenin kle...@gmail.com wrote: 1) apply the attached patch I somehow managed to save incorrect patch. Please use this version instead. I applied this patch but it gives the same problem. FYI, VTV does not

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

2009-03-22 Thread Alexander Klenin
On Sun, Mar 22, 2009 at 20:37, Luiz Americo Pereira Camara luiz...@oi.com.br wrote: FYI, VTV does not define any custom property editor. Ok, I was too lazy to download and install VirtualTree and so shot in the dark. How can i know what is the property giving problem? Call GetName or

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

2009-03-22 Thread Luiz Americo Pereira Camara
Alexander Klenin escreveu: On Sun, Mar 22, 2009 at 20:37, Luiz Americo Pereira Camara luiz...@oi.com.br wrote: FYI, VTV does not define any custom property editor. Ok, I was too lazy to download and install VirtualTree and so shot in the dark. How can i know what is the

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

2009-03-22 Thread Luiz Americo Pereira Camara
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

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

2009-03-22 Thread Alexander Klenin
On Sun, Mar 22, 2009 at 23:22, Luiz Americo Pereira Camara luiz...@oi.com.br wrote: Luiz Americo Pereira Camara escreveu: 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

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

2009-03-22 Thread Luiz Americo Pereira Camara
Alexander Klenin escreveu: BTW, perhaps it would be easier to use IRC? I'm _Ask_ on #lazarus-ide. Yes. Lazarus mailing list has a big lag for me Luiz ___ Lazarus mailing list Lazarus@lazarus.freepascal.org

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

2009-03-22 Thread Alexander Klenin
After IRC discussion the fix was submitted to Mantis as http://bugs.freepascal.org/view.php?id=13381 -- Alexander S. Klenin ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

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

2009-03-21 Thread Luiz Americo Pereira Camara
Starting from revision 19044, when i put a TVirtualStringTree control in a form the IDE crashes (see attached log). I could not reproduce with other controls and i'm not sure if the problem is in the changes introduced in 19044 or if just revealed a TVirtualStringTree bug. The VTV code can be