Hello friends,
Creating a simple FireMonkey project and added the first FormatToolBar and then the Editor, making the connection between them.
Deleting the Editor, or run and close the application, there is an access violation.
In the destroy Editor is "FToolBarList.Free;" and toolbar notification set the RichEdit as nil, which draws RemoveToolBar procedure that is:
if Assigned (FToolBarList) then
FToolBarList.Remove (AToolBar);
FToolBarList this assigned, but free.
Solved by changing "FToolBarList.Free;" to "FreeAndNil (FToolBarList);";
Thanks.