#1 2017-09-12 17:25:42

itSDS
Member
From: Germany
Registered: 2014-04-24
Posts: 516

Exception and Fix

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

#2 2017-09-21 11:26:40

itSDS
Member
From: Germany
Registered: 2014-04-24
Posts: 516

Re: Exception and Fix

Can you pls integrate this in Repositorie ?


Rad Studio 12.1 Santorini

Offline

#3 2017-09-21 13:55:55

EMartin
Member
From: Buenos Aires - Argentina
Registered: 2013-01-09
Posts: 337

Re: Exception and Fix

I recommend you create a ticket.

Best regards.


Esteban

Offline

#4 2017-09-21 16:43:19

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,669
Website

Re: Exception and Fix

Offline

Board footer

Powered by FluxBB