Menu editor unstable after deleting an item
Original Reporter info from Mantis: michael @mvancanneyt
-
Reporter name: Michael Van Canneyt
Original Reporter info from Mantis: michael @mvancanneyt
- Reporter name: Michael Van Canneyt
Description:
After deleting an item and adding one, clicking on a previous item and clicking on the newly added item, the lazarus IDE crashes completely.
Only a kill -KILL helps.
Steps to reproduce:
- open attached program.
- Open menu editor.
- Under MenuItem5 delete all items with caption MenuItemN.
- Add a new item below 'Action3' (so it will be the last item)
- Click on menu item Action 3
- Click on the newly added menu item.
-> 'Access Violation'
If you delete just 1 item below 'MenuItem5' it also happens
Even waiting 5 seconds between
Additional information:
Output on the console:
TObjectInspectorDlg.FillPersistentComboBox: Updating ComboBox with components
WARNING: TShadowItem.Destroy with LCLRefCount>0. Hint: Maybe the component is processing an event?
Hint: (lazarus) TMainIDE.OnPropHookDeletePersistent A MenuItem14:TMenuItem
TObjectInspectorDlg.FillPersistentComboBox: Updating ComboBox with components
Hint: (lazarus) TMainIDE.OnPropHookDeletePersistent A MenuItem13:TMenuItem
TObjectInspectorDlg.FillPersistentComboBox: Updating ComboBox with components
Hint: (lazarus) TMainIDE.OnPropHookDeletePersistent A MenuItem12:TMenuItem
TObjectInspectorDlg.FillPersistentComboBox: Updating ComboBox with components
Hint: (lazarus) TMainIDE.OnPropHookDeletePersistent A MenuItem11:TMenuItem
TObjectInspectorDlg.FillPersistentComboBox: Updating ComboBox with components
WARNING: TShadowItem.Destroy with LCLRefCount>0. Hint: Maybe the component is processing an event?
TApplication.HandleException Access violation
Stack trace:
$0000000000000000
$0000000000A08B7D line 1606 of ../designer/menueditor.pp
$0000000000A0DD03 line 2578 of ../designer/menueditor.pp
$00000000005B467A line 2242 of include/control.inc
$00000000005B4B17 line 2375 of include/control.inc
$0000000000434EF2 line 602 of ../inc/objpas.inc
$00000000005B457F line 2202 of include/control.inc
$00000000005A6FAD line 5396 of include/wincontrol.inc
$000000000077B7A2 line 112 of lclmessageglue.pas
$0000000000673075 line 3702 of gtk2proc.inc
$00000000006826EA line 2137 of gtk2callback.inc
$0000000000681D68 line 1899 of gtk2callback.inc
$00007FCBE2536AFC