I'm quite a novice in the Android world
and I ran to the next situation
I create this code
//function
procedure LoadPictureFromResource(const ResName: string; out aImage: TImage);
var
aResource: TResourceStream;
begin
aResource := TResourceStream.Create(HInstance, ResName, RT_RCDATA);
try
aImage.Bitmap.LoadFromStream(aResource);
finally
aResource.DisposeOf;
end;
end;
....
//call function
FImage := TImage.Create(Self);
FImage.Parent := Self;
FImage.Align := TAlignLayout.Left;
FImage.Margins.Left := 6;
FImage.Margins.Top := 3;
FImage.Margins.Bottom := 3;
FImage.Margins.Right := 3;
FImage.Width := 64;
LoadPictureFromResource(resPicturesError, FImage);
obviously with a mistake in the declaration parameter for procedure
used out instead var or const or empty
works with Windows but is still syntax / logic wrong
Android debug mode - Delphi reports an error (the device does not answer anything and operating normally) Segmentation fault (11)
Work mode - Delphi and the device does not report anything
Android does not report anything (error is dangerous) - why?