On the occurrence of certain events I am terminating an application in its formcreate method. This causes various errors with various ribbon units. The call to SaveRibbonSettings in UIRibbon.pas is being made even though it seems the call to the Load function has not been made. As such the RibbonSettingsFilePath variable has not been set and the call to ForceDirectories in SaveRibbonSettings fails.
This problem can be simply overcome by first checking that RibbonSettingsFilePath is empty before calling ForceDirectories etc. However, it just passes errors further down the chain to the GetPropertyValue commands in UIRIbbonCommands.pas.
On the occurrence of certain events I am terminating an application in its formcreate method. This causes various errors with various ribbon units. The call to SaveRibbonSettings in UIRibbon.pas is being made even though it seems the call to the Load function has not been made. As such the RibbonSettingsFilePath variable has not been set and the call to ForceDirectories in SaveRibbonSettings fails.
This problem can be simply overcome by first checking that RibbonSettingsFilePath is empty before calling ForceDirectories etc. However, it just passes errors further down the chain to the GetPropertyValue commands in UIRIbbonCommands.pas.