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/

Comments

  1. And that looks like the right link.

    ReplyDelete
  2. Just replace this code to make it compile with XE5:
    function 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;

    ReplyDelete
  3. Uwe -- thanks.
     
    I was just a little surprised to see that the samples were only updated for XE2.

    ReplyDelete
  4. Maybe Primož Gabrijelčič can help :-)

    ReplyDelete
  5. From http://otl.17slon.com/
    OmniThreadLibrary is simple to use threading library for Delphi. Currently, versions 2007, 2009, 2010, XE and XE2 are supported.

    ReplyDelete
  6. Nick Hodges, proper place would be https://plus.google.com/communities/112307748950248514961

    Roland Bengtsson, homepage has moved to http://www.omnithreadlibrary.com (and http://otl.17slon.com has to get a proper redirect, I know)

    ReplyDelete
  7. This fix has been now committed to the SVN. Uwe Raabe, thanks again!

    ReplyDelete

Post a Comment