Object Lock Not Owned targeting macOS 64bit - FMX

Hi guys,

I have made an App that draws lines on TBitmap and displays them on a canvas of PaintBox with DoubleBuffer.

This App works perfectly when it's compiled in Windows 64bit with the following code:

        pDrw.Canvas.DrawBitmap(DisplayTmp, DisplayTmp.Bounds, DisplayTmp.Bounds, 1);

- On Windows 64bit

When I compile the same code targeting macOS 64bit, I have the following error with pDrw.Canvas.BeginScene().

- On MacOs 64bit

Could you help me understand what I'm doing wrong? My objective is to draw a simple line in both Win64 and macOs64 with FMX.

I would like to know your opinions on how to solve this issue.