TTMSFMXNativeBarcodeScanner - AV

Hi


If I create a new instance of a  form with the scanner on it, then close the form, then rotate the device, I receive an AV in 

procedure TTMSFMXNativeCustomCameraViewControllerObserver.orientationChanged(notification: NSNotification);
var
  p: TTMSFMXNativeCustomCameraViewControllerPopup;
begin
  if not Assigned(FCameraController) then
    Exit;

  FCameraController.UpdateFrame;  <-- AV Here
  if FCameraController.Owner is TTMSFMXNativeCustomCameraViewControllerPopup then
    p := (FCameraController.Owner as TTMSFMXNativeCustomCameraViewControllerPopup);
end;

I assume that FCameraController is set to an invalid instance. 

I'm using TMSFMXNativeBarcodeScanner.Stop in the form's OnCloseQuery event.

Regards

Chris

Can you additionally destroy the TMSFMXNativeBarcodeScanner instance in the OncloseQuery event? It seems that the form itself is not properly removing all instances.