Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2014-12

TTIGrid crashed after calling ListObject.Add

4 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Kiên Nguyễn Tiến Trung

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? -------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20141209/484b0aaf/attachment-0001.html> -------------- next part --------------
A non-text attachment was scrubbed...
Name: epg1.zip
Type: application/zip
Size: 2982 bytes
Desc: not available
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20141209/484b0aaf/attachment-0001.zip>

Reply by email

John Landmesser
to Kiên Nguyễn Tiến Trung

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 :

Show quoted text 21 lines
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 http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20141209/eb9f4994/attachment.html>

Reply by email

Howard Page-Clark
to John Landmesser
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

Reply by email

Kiên Nguyễn Tiến Trung
to Howard Page-Clark

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 :

Show quoted text 25 lines
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 http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20141209/aed00656/attachment.html>

Reply by email