VCL UI Pack 13.7.1.0 with FNC Core 4.5.0.1: access violation when an FNC control draws an SVG (both products register TTMSFNCSVGBitmap, shared interface GUID)

Hello,

I reported this yesterday in the FNC Core forum: TMS FNC Core 4.5.0.0 - PDF: filled round rectangle without stroke is not drawn, and SVG fill-rule is ignored (screen and PDF differ) - #5 by Kohl_Andreas1

As the cause lies between FNC Core and VCL UI Pack, I would like to make the VCL UI Pack team aware of it as well.

Since FNC Core 4.5.0.1, an application that uses VCL UI Pack together with FNC controls raises an access violation as soon as an FNC control draws an SVG, for example the expand/collapse icon of a TTMSFNCGanttChart task list with a summary task. VCL UI Pack 13.7.1.0, released today, does not change this: TAdvGraphicsSVGElement still matches TTMSFNCGraphicsSVGElement of FNC Core 4.5.0.0 and does not have the five fields added in 4.5.0.1. The attached demo, rebuilt with 13.7.1.0, still raises the access violation.

Short version of the cause: AdvTypes declares IAdvSVGBitmap with the same GUID as ITMSFNCSVGBitmap ({3A7B5F92-C4E1-4D8A-B623-0F1E7A9D4C85}) and also registers a class named TTMSFNCSVGBitmap for the SVG file format. Whichever unit is initialized first wins. When AdvTypes wins, TTMSFNCGraphics.DrawSVG casts the UI Pack's TAdvGraphicsSVGImport to TTMSFNCGraphicsSVGImport and reads it with the new field layout. Call stack, details and the demo are in the post linked above.

Could you align the SVG engine of VCL UI Pack with FNC Core 4.5.0.1, or let us know which versions of the two products belong together?

Versions: Delphi 13.1, TMS FNC Core 4.5.0.1, TMS FNC Gantt Chart 1.3.3.11, TMS VCL UI Pack 13.7.1.0, all installed with TMS Smart Setup.

Thanks!

SVGExpandIcon_Demo.zip (7.1 KB)

I've sent incremental source update via private messages.