Frame can prevent Form from saving (if anchored)
Original Reporter info from Mantis: Martin @martin_frb
-
Reporter name: Martin Friebe
Original Reporter info from Mantis: Martin @martin_frb
- Reporter name: Martin Friebe
Description:
I have not yet found a small example to reproduce it, but the following works
- open lazarus.lpi
- open ide\frames\editor_mouseaction_options.pas
- add a frame to the mouse option form (e.g TBackupOptionsFrame
- anchor it
Frame.Top anchored to DiffLabel.bottom
Frame.left anchored to EditorMouseOptionFrame.Left
Frame.right anchored to EditorMouseOptionFrame.right
Try to save it.
You should get the below exception.
the problem is one of the anchorsides. TWriter for some reason thinks it is a component and attempts to access TComponent(anchorside).Name => which doesn't exist.
Additional information:
Stack trace:
$004075F9 fpc_ansistr_incr_ref, line 120 of C:/FPC/SVN/trunc/rtl/inc/astrings.inc
$0048F080 TWRITER__WRITEPROPERTIES, line 831 of C:/FPC/SVN/trunc/rtl/objpas/classes/writer.inc
$0048EEEB TWRITER__WRITECOMPONENTDATA, line 751 of C:/FPC/SVN/trunc/rtl/objpas/classes/writer.inc
$0048625B TCOMPONENT__WRITESTATE, line 405 of C:/FPC/SVN/trunc/rtl/objpas/classes/compon.inc
$0052E419 TWINCONTROL__GETCHILDREN, line 3604 of ./include/wincontrol.inc
$00419BF4 TCUSTOMFRAME__GETCHILDREN, line 83 of ./include/customframe.inc
$0048EDB0 TWRITER__WRITECHILDREN, line 718 of C:/FPC/SVN/trunc/rtl/objpas/classes/writer.inc
$0048EF02 TWRITER__WRITECOMPONENTDATA, line 755 of C:/FPC/SVN/trunc/rtl/objpas/classes/writer.inc
$0048625B TCOMPONENT__WRITESTATE, line 405 of C:/FPC/SVN/trunc/rtl/objpas/classes/compon.inc
$0052E419 TWINCONTROL__GETCHILDREN, line 3604 of ./include/wincontrol.inc
$00419BF4 TCUSTOMFRAME__GETCHILDREN, line 83 of ./include/customframe.inc
$0048EDB0 TWRITER__WRITECHILDREN, line 718 of C:/FPC/SVN/trunc/rtl/objpas/classes/writer.inc
$0048EF02 TWRITER__WRITECOMPONENTDATA, line 755 of C:/FPC/SVN/trunc/rtl/objpas/classes/writer.inc
$0048625B TCOMPONENT__WRITESTATE, line 405 of C:/FPC/SVN/trunc/rtl/objpas/classes/compon.inc
$0048EF21 TWRITER__WRITEDESCENDENT, line 765 of C:/FPC/SVN/trunc/rtl/objpas/classes/writer.inc
$0044D447 TMAINIDE__DOSAVEEDITORFILE, line 7399 of main.pp
$00452372 TMAINIDE__DOSAVEPROJECT, line 8704 of main.pp
TMainIDE.SaveFileResources Error cleaning up: Access violation
Mantis conversion info:
- Mantis ID: 14364
- Version: 0.9.27 (SVN)
- Fixed in version: 0.9.27 (SVN)
- Fixed in revision: 21345 (#83008608)
- Monitored by: » etrusco (Flávio Etrusco)
- Target version: 0.9.30