Hello,
  If we place the RichEdit control in a Form which is shown as a Dialog then at the time of unloading the dialog I am getting this error:
  --------------------------- Debugger Exception Notification --------------------------- Project XXXXXXX.exe raised exception class EConvertError with message 'Cannot assign a nil to a TMargins'. --------------------------- Break   Continue   Help    ---------------------------
 
  First of all Why this error?
  What to do?
  I opened the supplied RichEdit demo and then just add a form to project and set this to be Main form.
  On this form I placed a button and on the click event I called the form as a dialog.
  Now when we close this form with RichEdit control I am getting above message.
  I am using Delphi 10 Seattle.
  TIA
 
  Yogi Yang |