Access violation in TMSFMXPackDXE14.bpl switching back to design

Delphi 11 (brand new install)
TMS FMX IO Pack 3.7.7.1 (brand new install)
Windows 32bit project

When switching from Design to Code and then attempt to go back to design mode I get an access violation once I added code to a button click event (worked fine until then). This also occurs in 10.4.2. Restarting the IDE fixes it temporarily.

First error is an access violation in bds.exe, then this error:

image

On the form:
TfrmMain = class(TForm)
TMSFMXRichEditorFormatToolBar1: TTMSFMXRichEditorFormatToolBar;
TMSFMXDockPanel1: TTMSFMXDockPanel;
TMSFMXRichEditorEditToolBar1: TTMSFMXRichEditorEditToolBar;
TMSFMXRichEditor1: TTMSFMXRichEditor;
Panel1: TPanel;
TMSFMXRichEditorRTFIO1: TTMSFMXRichEditorRTFIO;
Button1: TButton;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;

The stack trace of the report generated by the first bds error (submitted to Embarcadero) which seems related to:
Fmx.Tmstoolbar.TTMSFMXCustomDockPanel.StyleChangedHandler

[12BEADDC]{fmx280.bpl  } FMX.Types.ArrangeControlToAnchors (Line 3191, "FMX.Types.pas" + 33) + $7
[5005A388]{rtl280.bpl  } System.@FreeMem (Line 4976, "System.pas" + 20) + $0
[5005FCE4]{rtl280.bpl  } System.TObject.FreeInstance (Line 17960, "System.pas" + 2) + $2
[500604B2]{rtl280.bpl  } System.@ClassDestroy (Line 19324, "System.pas" + 0) + $2
[5005FDDC]{rtl280.bpl  } System.TObject.Free (Line 18023, "System.pas" + 1) + $4
[2DCDB8DA]{TMSFMXPackPkgDXE14.bpl} Fmx.Tmstoolbar.TTMSFMXCustomDockPanel.StyleChangedHandler + $46
[501D8048]{rtl280.bpl  } System.Messaging.TMessageManager.TListenerList.IterateAndSend (Line 323, "System.Messaging.pas" + 8) + $D
[501D80AF]{rtl280.bpl  } System.Messaging.TMessageManager.TListenerList.SendMessage (Line 334, "System.Messaging.pas" + 5) + $7
[501D7F2F]{rtl280.bpl  } System.Messaging.TMessageManager.SendMessage (Line 234, "System.Messaging.pas" + 4) + $8
[501D7F4D]{rtl280.bpl  } System.Messaging.TMessageManager.SendMessage (Line 238, "System.Messaging.pas" + 8) + $6
[128A233F]{fmx280.bpl  } FMX.Styles.TStyleManager.UpdateScenes (Line 1178, "FMX.Styles.pas" + 1) + $1B
[17CAB058]{fmxdesigner280.bpl} FmxFormContainer.TFormContainerForm.RequestStyleChange (Line 1234, "FmxFormContainer.pas" + 0) + $0
[17CAB07C]{fmxdesigner280.bpl} FmxFormContainer.TFormContainerForm.SetMasterStyle (Line 1244, "FmxFormContainer.pas" + 6) + $2
[17CB15E3]{fmxdesigner280.bpl} FmxFormContainer.TFormBoundary.SetMasterStyle (Line 3432, "FmxFormContainer.pas" + 2) + $7
[20FC5AFC]{designide280.bpl} EmbeddedFormDesigner.TEditorFormDesigner.DoSelectStyle (Line 179, "EmbeddedFormDesigner.pas" + 10) + $9
[20FC2B64]{designide280.bpl} ViewSelector.TViewSelectorFrame.cbStyleSelectorChange (Line 336, "ViewSelector.pas" + 2) + $2F
[20FC3A14]{designide280.bpl} ViewSelector.TViewSelectorFrame.SelectStyle (Line 731, "ViewSelector.pas" + 16) + $C
[50061544]{rtl280.bpl  } System.@TryFinallyExit (Line 23404, "System.pas" + 8) + $0
[20FC39C5]{designide280.bpl} ViewSelector.TViewSelectorFrame.SelectStyle (Line 725, "ViewSelector.pas" + 10) + $0
[20FC6435]{designide280.bpl} EmbeddedFormDesigner.TEditorFormDesigner.SelectPreviewStyle (Line 415, "EmbeddedFormDesigner.pas" + 2) + $8
[17CA95A8]{fmxdesigner280.bpl} FmxFormContainer.TFormContainerForm.SelectMasterStyle (Line 730, "FmxFormContainer.pas" + 22) + $9
[17CAA1AD]{fmxdesigner280.bpl} FmxFormContainer.TFormContainerForm.Activate (Line 764, "FmxFormContainer.pas" + 1) + $2
[17CAB756]{fmxdesigner280.bpl} FmxFormContainer.TFmxEditorFormDesignerWrapper.DisplayDesigner (Line 1553, "FmxFormContainer.pas" + 13) + $7
[20FC7901]{designide280.bpl} EmbeddedDesignerForm.TFormEditorView.Display (Line 214, "EmbeddedDesignerForm.pas" + 18) + $8
[206E751E]{coreide280.bpl} EditorForm.TEditWindow.ShowView (Line 4829, "EditorForm.pas" + 50) + $B
[206E0478]{coreide280.bpl} EditorForm.TEditWindow.SwitchViews (Line 2253, "EditorForm.pas" + 8) + $5
[206DFF96]{coreide280.bpl} EditorForm.TEditWindow.ViewBarChange (Line 2096, "EditorForm.pas" + 10) + $10
[50E8EE99]{vcl280.bpl  } Vcl.Tabs.TTabSet.CanChange (Line 1962, "Vcl.Tabs.pas" + 3) + $11
[50E8EEE9]{vcl280.bpl  } Vcl.Tabs.TTabSet.SetTabIndex (Line 1973, "Vcl.Tabs.pas" + 5) + $8
[206DE656]{coreide280.bpl} EditorForm.TEditWindow.SelectEditView (Line 1474, "EditorForm.pas" + 30) + $E
[206ADDFE]{coreide280.bpl} EditorBuffer.TEditSource.SwitchToView (Line 4554, "EditorBuffer.pas" + 14) + $7
[17CB2B67]{fmxdesigner280.bpl} FmxFormContainer.TEmbeddedFormHostWrapper.Show (Line 3983, "FmxFormContainer.pas" + 6) + $D
[17CBBD46]{fmxdesigner280.bpl} FmxFormDesigner.TFmxRootDesigner.DoShow (Line 1569, "FmxFormDesigner.pas" + 2) + $8
[20F4E1B7]{designide280.bpl} ComponentDesigner.TComponentRoot.Show (Line 4522, "ComponentDesigner.pas" + 9) + $4
[21CA8B71]{delphicoreide280.bpl} DelphiModule.TPascalCodeMgrModHandler.ShowExternalViewer (Line 1664, "DelphiModule.pas" + 3) + $5
[205E14C4]{coreide280.bpl} SourceModule.TCodeISourceModule.ShowExternalViewer (Line 1539, "SourceModule.pas" + 2) + $32
[205DF3D3]{coreide280.bpl} SourceModule.TSourceModule.ShowExternalViewer (Line 879, "SourceModule.pas" + 1) + $2F
[207B38A5]{coreide280.bpl} DocModul.ToggleForm (Line 3531, "DocModul.pas" + 5) + $2
[2230E8BC]{delphide280.bpl} PasReg.TPascalPersonalityTraits.ViewToggleFormUnit (Line 1184, "PasReg.pas" + 0) + $0
[205B7BB7]{coreide280.bpl} CoreViewCmds.TViewCommands.ViewToggleForm (Line 561, "CoreViewCmds.pas" + 6) + $5
[501733CF]{rtl280.bpl  } System.Classes.TBasicAction.Execute (Line 17813, "System.Classes.pas" + 3) + $7
[50CAF9B2]{vcl280.bpl  } Vcl.ActnList.TCustomAction.Execute (Line 284, "Vcl.ActnList.pas" + 19) + $35
[205B631A]{coreide280.bpl} CoreViewCmds.ViewToggleForm (Line 211, "CoreViewCmds.pas" + 2) + $C
[0049D234]{bds.exe     } AppMain.TBorlandIDE.ViewToggleFormItemClick (Line 1468, "AppMain.pas" + 0) + $0
[206E46BA]{coreide280.bpl} EditorForm.TEditWindow.CMWindowCommand (Line 3640, "EditorForm.pas" + 25) + $9
[50CC7CCA]{vcl280.bpl  } Vcl.Controls.TControl.WndProc (Line 7544, "Vcl.Controls.pas" + 91) + $6
[5006076C]{rtl280.bpl  } System.TMonitor.Destroy (Line 19558, "System.pas" + 0) + $0
[50064774]{rtl280.bpl  } System.@FinalizeRecord (Line 32815, "System.pas" + 76) + $2
[50DCDE51]{vcl280.bpl  } Vcl.Themes.TStyleManager.GetStyle (Line 5789, "Vcl.Themes.pas" + 7) + $D
[50061544]{rtl280.bpl  } System.@TryFinallyExit (Line 23404, "System.pas" + 8) + $0
[50DCDF3F]{vcl280.bpl  } Vcl.Themes.TStyleManager.GetStyle (Line 5800, "Vcl.Themes.pas" + 18) + $1E
[50CA82DC]{vcl280.bpl  } Vcl.Graphics.TBitmapCanvas.FreeContext (Line 7393, "Vcl.Graphics.pas" + 12) + $3
[500602C7]{rtl280.bpl  } System.TObject.Dispatch (Line 18874, "System.pas" + 11) + $0
[50DD1DB9]{vcl280.bpl  } Vcl.Themes.TStyleHook.WndProc (Line 7684, "Vcl.Themes.pas" + 38) + $6
[50DD1F90]{vcl280.bpl  } Vcl.Themes.TMouseTrackControlStyleHook.WndProc (Line 7784, "Vcl.Themes.pas" + 0) + $0
[50E1B1D9]{vcl280.bpl  } Vcl.Forms.TFormStyleHook.WndProc (Line 18214, "Vcl.Forms.pas" + 7) + $4
[50DD15DE]{vcl280.bpl  } Vcl.Themes.TStyleHook.HandleMessage (Line 7389, "Vcl.Themes.pas" + 20) + $6
[50E1715F]{vcl280.bpl  } Vcl.Forms.TFormStyleHook.IsStyleBorder (Line 16431, "Vcl.Forms.pas" + 1) + $C
[50E171A0]{vcl280.bpl  } Vcl.Forms.TFormStyleHook.HandleMessage (Line 16438, "Vcl.Forms.pas" + 2) + $6
[50EF128E]{vcl280.bpl  } Vcl.Styles.TStyleEngine.HandleMessage (Line 3603, "Vcl.Styles.pas" + 22) + $B
[50DCE070]{vcl280.bpl  } Vcl.Themes.TStyleManager.HandleMessage (Line 5858, "Vcl.Themes.pas" + 11) + $11
[50CCAE2F]{vcl280.bpl  } Vcl.Controls.TWinControl.DoHandleStyleMessage (Line 9408, "Vcl.Controls.pas" + 0) + $F
[50CCCDBD]{vcl280.bpl  } Vcl.Controls.TWinControl.WndProc (Line 10579, "Vcl.Controls.pas" + 170) + $6
[50E035A4]{vcl280.bpl  } Vcl.Forms.TCustomForm.WndProc (Line 4986, "Vcl.Forms.pas" + 222) + $5
[50E035BC]{vcl280.bpl  } Vcl.Forms.TCustomForm.WndProc (Line 4987, "Vcl.Forms.pas" + 223) + $13
[50CCC338]{vcl280.bpl  } Vcl.Controls.TWinControl.MainWndProc (Line 10267, "Vcl.Controls.pas" + 3) + $6
[50174200]{rtl280.bpl  } System.Classes.StdWndProc (Line 18318, "System.Classes.pas" + 8) + $0
[50E0D68F]{vcl280.bpl  } Vcl.Forms.TApplication.ProcessMessage (Line 11317, "Vcl.Forms.pas" + 23) + $1
[50E0D6D2]{vcl280.bpl  } Vcl.Forms.TApplication.HandleMessage (Line 11347, "Vcl.Forms.pas" + 1) + $4
[50E0DA11]{vcl280.bpl  } Vcl.Forms.TApplication.Run (Line 11486, "Vcl.Forms.pas" + 27) + $3
[004F6F82]{bds.exe     } bds.bds (Line 227, "" + 16) + $2

We are able to reproduce this issue and are currently investigating a solution.

We have fixed this issue and have applied a fix. The next version will address this.