JAM-Software / RibbonFramework

Delphi wrapper and standalone Designer for the Windows Ribbon Framework
Other
202 stars 57 forks source link

Various errors on terminating application #97

Closed markwilliams1234 closed 6 years ago

markwilliams1234 commented 6 years ago

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.