Destroying a TSynEdit with a highlighter assigned raises an AV
Original Reporter info from Mantis: etrusco
-
Reporter name: Flávio Etrusco
Original Reporter info from Mantis: etrusco
- Reporter name: Flávio Etrusco
Description:
Stacktrace:
TryFreeComponent ERROR: "SynEdit1:TSynEdit" Access violation
Stack trace:
$083D0D1F TSYNOBJECTLIST__COUNT, line 730 of syneditmiscclasses.pp
$0840DFDE TSYNGUTTERPARTLIST__GETBYCLASSCOUNT, line 428 of syngutterbase.pp
$0840E8F7 TSYNGUTTER__AUTOSIZEDIGITCOUNT, line 306 of syngutter.pp
$083E4F27 TCUSTOMSYNEDIT__GUTTERCHANGED, line 6597 of synedit.pp
$083E699A TCUSTOMSYNEDIT__RECALCCHAREXTENT, line 7242 of synedit.pp
$083E1767 TCUSTOMSYNEDIT__SETHIGHLIGHTER, line 5480 of synedit.pp
$083D7CCF TCUSTOMSYNEDIT__DESTROY, line 1828 of synedit.pp
I'm not sure whether csDetroying should be checked before RecalcCharExtent (or somewhere else) of Gutter.Parts should be checked for new AutoSizeDigitCount, but there's a few places where Gutter.Parts/FGutterPartList is set to nil, so...
Mantis conversion info:
- Mantis ID: 16424
- Version: 0.9.29 (SVN)
- Fixed in version: 0.9.30
- Fixed in revision: 25460 (#6be124b9)