TTMSFNCPrinter access violation

Hello,

I am running in a Device with Android 10 the demo located at : ...\TMS FNC Core\Demos\FMX\TMSFNCPrinter\Demo.dpr.

My environment is Embarcadero® Delphi 10.4 Version 27.0.40680.4203 Update 2, the Android SDK is 25.2.5 32 bits and TMS FNC Core version 2.8.1.4, 1th March 2022.

The problem is that when the source code calls the TMSFNCPrinter.EndDoc, an access violation is raised.

I have modified the source code to change this :

procedure TTMSFNCPrinter.EndDoc;
{$IFDEF IOS}
var
v: UIView;
{$ENDIF}
begin
{$IFDEF FMXLIB}
FGraphics.EndScene;
{$ENDIF}
............
............
end;

By this :

procedure TTMSFNCPrinter.EndDoc;
{$IFDEF IOS}
var
v: UIView;
{$ENDIF}
begin
{$IFNDEF ANDROIDIOSLIB}
{$IFDEF FMXLIB}
FGraphics.EndScene;
{$ENDIF}
{$ENDIF}
............
............
end;

And the problem has been solved, no access violation.

Thank you for letting us know, we have solved the issue and it will be fixed in the next update of TMS FNC Core.