Hello

Hello,

got a question for 10.2.3

This Code works well for XE7 but in 10.2.3 i get E2008 Error (Incompatible type)


type
THelper = record
class procedure TryCatchExecute(AProc: TProc);static;
end;

{ THelper }

class procedure THelper.TryCatchExecute(AProc: TProc);
begin
try
AProc(T); <-- this does not work
except on E: Exception do
// do some handling
end;
end;


Comments

  1. Jeroen Wiert Pluimers Currently i have no concret example. Found this while migrate some code from XE7 to 10.2 :)
    I wrote that this code works well ... I meant it is compiling without error

    ReplyDelete
  2. Works well and compiles without error are completely different thing.

    ReplyDelete

Post a Comment