Re: [Lazarus] TTIGrid crashed after calling ListObject.Add

2014-12-09 Thread John Landmesser
no crash on a 32bit Windows XP with

Lazarus 1.3 r47147 FPC 2.6.4 i386-win32-win32/win64

2014-12-09 4:39 GMT+01:00 Kiên Nguyễn Tiến Trung kc97...@gmail.com:

 I'm finding the way to add something into a TCollection while using
 TTIGrid on it. I've tried following code, however, when I click Button1,
 then click to the space inside the grid, my program crashed. Please have a
 look at my attachment for more detail.

 procedure TForm1.Button1Click(Sender: TObject);
 begin
   TIGrid1.ListObject := nil;
   MyCollection.Add;
   TIGrid1.ListObject := MyCollection;
 end;

 Do you know the right way to call add an item into TCollection?

 --
 ___
 Lazarus mailing list
 Lazarus@lists.lazarus.freepascal.org
 http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] TTIGrid crashed after calling ListObject.Add

2014-12-09 Thread Howard Page-Clark

On 09/12/2014 10:41, John Landmesser wrote:

no crash on a 32bit Windows XP with


For me it sometimes crashes, and sometimes does not (Win7 32-bit).
The problem is not with adding an item to TCollection (which is fine as 
far as I can see), but probably some hard to find bug in the LCL which 
TTIGrid exposes unpredictably.


Howard


---
This email has been checked for viruses by Avast antivirus software.
http://www.avast.com


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] TTIGrid crashed after calling ListObject.Add

2014-12-09 Thread Kiên Nguyễn Tiến Trung
It doesn't crash immediately after clicking Button1. In my case, I must
click into the TIGrid, then it crashes.

2014-12-09 19:31 GMT+07:00 Howard Page-Clark h...@talktalk.net:

 On 09/12/2014 10:41, John Landmesser wrote:

 no crash on a 32bit Windows XP with


 For me it sometimes crashes, and sometimes does not (Win7 32-bit).
 The problem is not with adding an item to TCollection (which is fine as
 far as I can see), but probably some hard to find bug in the LCL which
 TTIGrid exposes unpredictably.

 Howard


 ---
 This email has been checked for viruses by Avast antivirus software.
 http://www.avast.com



 --
 ___
 Lazarus mailing list
 Lazarus@lists.lazarus.freepascal.org
 http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus