ValueListEditor crash on Strings.Delete
Original Reporter info from Mantis: Bart @flyingsheep
-
Reporter name: Bart Broersma
Original Reporter info from Mantis: Bart @flyingsheep
- Reporter name: Bart Broersma
Description:
ValueListEditor crashes with AV when you delete more than one item from the Strings property
Tested with r40197
(At first I thought I introduced this myself with r40204, but this is not the case)
Steps to reproduce:
ValEd is a TValuelistEditor.
if ValEd.Strings.Count > 0 then ValEd.Strings.Delete(0);
Run this code twice on a ValueListEditor
Build and run attached demo.
Pres button "Delete(0)" twice --> Crash
Additional information:
Here's the output on the console.
C:\Users\Bart\LazarusProjecten\bugs\ValEdit>vle
TApplication.HandleException Access violation
Stack trace:
$0056399F TVALUELISTEDITOR__SELECTVALUEEDITOR, line 600 of valedit.pas
$00545E85 TCUSTOMGRID__SELECTEDITOR, line 7708 of grids.pas
$0053961F TCUSTOMGRID__SETOPTIONS, line 2472 of grids.pas
$00563C16 TVALUELISTEDITOR__SETOPTIONS, line 694 of valedit.pas
$005632E7 TVALUELISTSTRINGS__DELETE, line 449 of valedit.pas
$00427578 TFORM1__BUTTON3CLICK, line 74 of main.pp
$004FC242 TCONTROL__CLICK, line 2718 of ./include/control.inc
$0051367F TBUTTONCONTROL__CLICK, line 55 of ./include/buttoncontrol.inc
$00513C6F TCUSTOMBUTTON__CLICK, line 175 of ./include/buttons.inc
$005142C1 TBUTTON__CLICK, line 355 of ./include/buttons.inc
$005135BA TBUTTONCONTROL__WMDEFAULTCLICKED, line 26 of ./include/buttoncontr
ol.inc
$0040AE56
$004F028E TWINCONTROL__WNDPROC, line 5323 of ./include/wincontrol.inc
$00537B35 DELIVERMESSAGE, line 117 of lclmessageglue.pas
$004D3063 WINDOWPROC, line 2476 of ./win32/win32callback.inc
$00560488 CUSTOMFORMWNDPROC, line 375 of ./win32/win32wsforms.pp
$750B62FA
Mantis conversion info:
- Mantis ID: 23851
- OS: Window
- OS Build: Win7
- Build: r40197
- Platform: i386
- Version: 1.1 (SVN)
- Fixed in version: 1.1 (SVN)
- Fixed in revision: r40209 (#938dfb12)