dimmaq / omnithreadlibrary

Automatically exported from code.google.com/p/omnithreadlibrary
0 stars 0 forks source link

TOmniValue.CastToRecord on error says error casting to string. #53

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
OvlCommon, Line 1907, copy paste error?:

function TOmniValue.CastToRecord: IOmniAutoDestroyObject;
begin
  case ovType of
    ovtRecord: Result := IOmniAutoDestroyObject(ovIntf);
    else raise Exception.Create('TOmniValue cannot be converted to string');
  end;
end; { TOmniValue.CastToRecord }

I guess this should be:
else raise Exception.Create('TOmniValue cannot be converted to RECORD');

:)

Original issue reported on code.google.com by ryan.lip...@gmail.com on 12 Dec 2013 at 12:41