You are not logged in.
Pages: 1
Hi AB
using my MVC Server i entered for testing reason the URL of a TMVCAction in my Browser and got Exception 0x0000000
Please change this function
function TInterfaceFactory.FindMethodIndex(const aMethodName: RawUTF8): integer;
begin
if (self=nil) or (aMethodName='') then
result := -1 else
if fMethodsCount<10 then begin
for result := 0 to fMethodsCount-1 do
if IdemPropNameU(fMethods[result].URI,aMethodName) then
exit;
result := -1;
end else
result := fMethod.FindHashed(aMethodName);
if (result<0) and (Length(aMethodName) > 0) and (aMethodName[1]<>'_') then /// <<<<---- added Length Control. aMethodName was = '' in my case and [1] caused the Exception !
result := FindMethodIndex('_'+aMethodName);
end;
Thanks
Rad Studio 12.1 Santorini
Offline
Can you pls integrate this in Repositorie ?
Rad Studio 12.1 Santorini
Offline
I recommend you create a ticket.
Best regards.
Esteban
Offline
Please check https://synopse.info/fossil/info/9cd0cad645
Offline
Pages: 1