Bug in RequestRuntimePermission causes a fatal error and closes the application lazarus / 43-Android ---------------------------------------------------------------------- ADiV · 2018-10-15 17:10 Hi guys, I found an error when the function is called: "RequestRuntimePermission" with several permissions, once this function is called it causes a fatal error and closes the application. Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i       SetLength(manifestPermissions, 2);       manifestPermissions[0]:= 'Manifest.permission.CAMERA';  //from AndroodManifest.xml      manifestPermissions[1]:= 'Manifest.permission.WRITE_EXTERNAL_STORAGE'; //from AndroodManifest.xml       // When this function is called, it causes a fatal error and closes the application      Self.RequestRuntimePermission(manifestPermissions, 1001);       SetLength(manifestPermissions, 0); ---------------------------------------------------------------------- jmpessoa · 2018-10-15 17:51 Hi, TR3E What a about   "Run" ---> "Clean up and Build"? EDITED: from "AndroodManifest.xml": manifestPermissions[0]:= 'android.permission.CAMERA'; manifestPermissions[1]:= 'android.permission.WRITE_EXTERNAL_STORAGE'; ---------------------------------------------------------------------- ADiV · 2018-10-16 07:44 Quote from: jmpessoa on October 15, 2018, 07:51:12 pmHi, TR3E What a about   "Run" ---> "Clean up and Build"? EDITED: from "AndroodManifest.xml": manifestPermissions[0]:= 'android.permission.CAMERA'; manifestPermissions[1]:= 'android.permission.WRITE_EXTERNAL_STORAGE'; Thanks, update to the latest version of LAMW and it works correctly.