My Delphi 13 Android project has Range Checking turned OFF for the Release configurations.
The project runs in Debug mode as expected.
Running the project in Release mode has the TNetHTTPClient.Get() method causing an error which triggers the component's OnRequestError event.
procedure TMainForm.NetHTTPClientRequestError(const Sender: TObject; const AError: string);
begin
gDebugStrings.Add(AError);
end;
AError has the value of 'Range Check Error'.
The same string is being passed to TNetHTTPClient.Get() in Debug and Release modes.
How do I figure out what is causing the Range Check error?
The error message is composed of the words 'Range check error' but there appears to be no actual range check error. Searching C:\Program Files (x86)\Embarcadero\Studio\37.0\source\rtl\net for the phrase 'range check' turns up nothing.
TNetHTTPClientwith the Delphi debugger. You should file a bug report with Embarcadero.Assertcalls. Instead of message boxes, adding aTMemoand writing your own messages there is an option.TNetHTTPClientcomponent itself.