Access Violation by open new project after editing a property of TListView.Columns
Original Reporter info from Mantis: Michl @michl1
-
Reporter name: Michl
Original Reporter info from Mantis: Michl @michl1
- Reporter name: Michl
Description:
I got a AV when I will open a new project after editing a property of TListView.Columns (or other components with subclasses, like TStringGrid.Columns).
Steps to reproduce:
- open the added project
- deselect in Object Inspector: Form1.ListView1.Columns[0].Autosize
- open a the added project again
-> see the AV
Additional information:
BT:
Program received signal SIGSEGV, Segmentation fault.
0x0049d18a in CLASSES$_$TCOLLECTIONITEM_$__$$_CHANGED$BOOLEAN ()
(gdb) bt
#0 0x0049d18a in CLASSES$_$TCOLLECTIONITEM_$__$$_CHANGED$BOOLEAN ()
#1 0x005d0cb5 in SETAUTOSIZE (this=0x11ba0608, AVALUE=false)
at include/listcolumn.inc:221
#2 0x004af5ca in TYPINFO_$$_SETORDPROP$TOBJECT$PPROPINFO$INT64 ()
#3 0x00771c04 in SETORDVALUE (this=0x1162cf98, NEWVALUE=0)
at propedits.pp:3066
#4 0x00773cc2 in SETVALUE (this=0x1162cf98, NEWVALUE=0xfa7358 '(False)')
at propedits.pp:3716
#5 0x0075e97a in SETROWVALUE (this=0x11b529e8, CHECKFOCUS=true)
at objectinspector.pp:1551
#6 0x0075f9cf in SETITEMINDEX (this=0x11b529e8, NEWINDEX=-1)
at objectinspector.pp:1799
#7 0x0075e135 in SETSELECTION (this=0x11b529e8, ASELECTION=0x11a39cc0)
at objectinspector.pp:1350
#8 0x0076a30c in REFRESHSELECTION (this=0x11b42aa8)
at objectinspector.pp:4749
#9 0x0076a1a6 in SETSELECTION (this=0x11b42aa8, ASELECTION=0x117b74a0)
at objectinspector.pp:4724
#10 0x0082f733 in SETSELECTION (this=0x118ab298, ASELECTION=0x119f5f40)
at customformeditor.pp:511
#11 0x0046d643 in ONCONTROLSELECTIONCHANGED (this=0xf960080,
SENDER=0x117ff558, FORCEUPDATE=false) at main.pp:8989
#12 0x0083cd6e in DOCHANGE (this=0x117ff558, FORCEUPDATE=false)
at ../designer/controlselection.pp:2088
#13 0x0083907c in ENDUPDATE (this=0x117ff558)
at ../designer/controlselection.pp:1003
#14 0x0082165b in PREPAREFREEDESIGNER (this=0x2ed8a0, AFREECOMPONENT=true)
at ../designer/designer.pp:815
#15 0x00a516bd in CLOSEUNITCOMPONENT (this=0x116bd5c0, ANUNITINFO=0x2d8b70,
FLAGS=...) at sourcefilemanager.pas:7501
#16 0x00a3e8ed in CLOSEEDITORFILE (this=0x116bd5c0, AEDITOR=0x3b26e0,
FLAGS=...) at sourcefilemanager.pas:2666
#17 0x00a44e96 in CLOSEPROJECT (this=0x116bd5c0) at sourcefilemanager.pas:4280
#18 0x00462d60 in DOCLOSEPROJECT (this=0xf960080) at main.pp:6207
#19 0x004633db in DOOPENPROJECTFILE (this=0xf960080,
AFILENAME=0x14af9f04 'C:\01_Temp\Objectinspector bug\project1.lpi',
FLAGS=...) at main.pp:6331
#20 0x00a450b9 in OPENPROJECT (this=0x116bd5c0, AMENUITEM=0x110efa80)
at sourcefilemanager.pas:4314
#21 0x0045a5d6 in MNUOPENPROJECTCLICKED (this=0xf960080, SENDER=0x110efa80)
at main.pp:3991
#22 0x0079a7a5 in MENUITEMCLICK (this=0x110efa80, SENDER=0x11766c48)
at menuintf.pas:544
#23 0x0079d955 in MENUITEMCLICK (this=0x110efa80, SENDER=0x11766c48)
at menuintf.pas:1710
#24 0x005c377c in CLICK (this=0x11766c48) at include/menuitem.inc:83
#25 0x005c3ed3 in DOCLICKED (this=0x11766c48, MSG=0)
at include/menuitem.inc:280
#26 0x0040e8f0 in SYSTEM$_$TOBJECT_$__$$_DISPATCH$formal ()
#27 0x00eb5ab4 in VMT_$MENUS_$$_TPOPUPMENU ()
#28 0x00000001 in ?? ()
#29 0x003012bc in ?? ()
Mantis conversion info:
- Mantis ID: 31153
- OS: Windows
- OS Build: 7 and 10
- Build: r53749
- Platform: 32bit
- Version: 1.7 (SVN)
- Fixed in revision: r53764 (#8ed63aff)