vcl-styles-utils icon indicating copy to clipboard operation
vcl-styles-utils copied to clipboard

Access Violation using TVCLStylesPreview in Alexandria (with solution)

Open jdorlon-Quest opened this issue 3 years ago • 0 comments

Running the VCL Styles Preview demo under Delphi 11 Alexandria will result in an access violation.

The solution is to change this, in VCL.Styles.Ext, around line 93

  TSourceInfo = record
    Data: TStyleServicesHandle;
    StyleClass: TCustomStyleServicesClass;
  end;

to this

  TSourceInfo = record
    Data: TStyleServicesHandle;
    StyleClass: TCustomStyleServicesClass;
    DesigningState: Boolean;
  end;

jdorlon-Quest avatar Jan 17 '22 19:01 jdorlon-Quest