Sign in Join

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

Mailing lists / lazarus / 2002-11

TListView bugs etc.

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Vasily I. Volchenko

Thanks for fixing bug of unreleased DCs. Unfortunately, you have implemented (yesterday's patch) a greater bug: if TListView contains more columns than 2, any (or only 80 %) Items.Add method results in access violation in strlen function of libc. I think that it is a very bad idea to linit colcount to 2. It seems that is due to only two Titles[] elements mentioned (former version contained for Count:=1 to 255, which now doesn't help). I haven't understand, what exactly is done in gtkobject.inc on lm_lv_additem (seems that it is just a wrapper to gtk functions, requirung pointer to all subitems array), but it seems that the following patch fixes this problem. May be, I have a bad gtk (from RedHat 7.3). Besides, patch contains a bit of localization.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: bin00008.bin
Type: application/octet-stream
Size: 4068 bytes
Desc: "lazarus_2002-11-11_fixed.diff.gz"
Url : http://localhost/pipermail/lazarus/attachments/20021112/b8718ed2/bin00008.bin

Reply by email

Mattias Gaertner
to Vasily I. Volchenko
Thanks for fixing bug of unreleased DCs. Unfortunately, you have implemented (yesterday's patch) a greater bug: if TListView contains more columns than 2, any (or only 80 %) Items.

Strange gtkclist. I didn't expect such an implementation.

Show quoted text 8 lines
Add method results in access violation in strlen function of libc. I think that it is a very bad idea to linit colcount to 2. It seems that is due to only two Titles[] elements mentioned (former version contained for Count:=1 to 255, which now doesn't help). I haven't understand, what exactly is done in gtkobject.inc on lm_lv_additem (seems that it is just a wrapper to gtk functions, requirung pointer to all subitems array), but it seems that the following patch fixes this problem.

You forgot to make Titles dynamic. Should work now.

May be, I have a bad gtk (from RedHat 7.3). Besides, patch contains a bit of localization.

Thx. Applied.

Mattias

Reply by email