Is this the proper place to get Omnithread?
Is this the proper place to get Omnithread?
https://code.google.com/p/omnithreadlibrary/
If so, it is really only updated for XE2?
It won't compile in XE5 -- I get:
[dcc32 Error] DetailedRTTI.pas(132): E2010 Incompatible types: 'TCallConv' and 'TCallingConvention'
https://code.google.com/p/omnithreadlibrary/
https://code.google.com/p/omnithreadlibrary/
If so, it is really only updated for XE2?
It won't compile in XE5 -- I get:
[dcc32 Error] DetailedRTTI.pas(132): E2010 Incompatible types: 'TCallConv' and 'TCallingConvention'
https://code.google.com/p/omnithreadlibrary/
Nick Hodges - FYI - It has it's own group here:
ReplyDeletehttps://plus.google.com/communities/112307748950248514961
And that looks like the right link.
ReplyDeleteIn XE4, it is compiled without errors.
ReplyDeleteJust replace this code to make it compile with XE5:
ReplyDeletefunction TReturnInfoHelper.AsString: string;
var
c: string;
begin
Assert( Version = 1, 'Version of ReturnInfo incorrect' );
if assigned( ReturnType ) then
Result := string(ReturnType^.Name);
Result := Result + ';';
case CallingConvention of
TCallConv.ccCdecl: c := 'cdecl';
TCallConv.ccPascal: c := 'pascal';
TCallConv.ccStdCall: c := 'stdcall';
TCallConv.ccSafeCall: c := 'safecall';
else c := '';
end;
if c <> '' then Result := Result + ' ' + c + ';';
end;
Uwe -- thanks.
ReplyDeleteI was just a little surprised to see that the samples were only updated for XE2.
Maybe Primož Gabrijelčič can help :-)
ReplyDeleteFrom http://otl.17slon.com/
ReplyDeleteOmniThreadLibrary is simple to use threading library for Delphi. Currently, versions 2007, 2009, 2010, XE and XE2 are supported.
Nick Hodges, proper place would be https://plus.google.com/communities/112307748950248514961
ReplyDeleteRoland Bengtsson, homepage has moved to http://www.omnithreadlibrary.com (and http://otl.17slon.com has to get a proper redirect, I know)
This fix has been now committed to the SVN. Uwe Raabe, thanks again!
ReplyDelete