Jump to content
eivindbakkestuen

Delphi 2007 supported in Indy 10?

Recommended Posts

The latest dev snapshot comes with batch files for Delphi 2007 and older, but the packages can't be compiled (first problem, stops on UInt8 etc types in idBuffer.pas which doesn't exist in D2007).

 

Is D2007 meant to be supported still? I couldn't find a definitive document to say what IDE/compilers are currently supported.

Share this post


Link to post
22 hours ago, eivindbakkestuen said:

The latest dev snapshot comes with batch files for Delphi 2007 and older

That is because Indy doesn't use batch files anymore for newer Delphi versions (it does for C++Builder, though).  You can simply open the 5 DPKs in the Delphi IDE and compile and install them directly.

22 hours ago, eivindbakkestuen said:

the packages can't be compiled (first problem, stops on UInt8 etc types in idBuffer.pas which doesn't exist in D2007).

UInt8 (and other (U)IntX data types) are defined for Delphi 2007 and earlier in the IdGlobal.pas unit, which IdBuffer.pas uses.  Indy's IdCompilerDefines.inc file defines HAS_UInt8 for Delphi 2009 and later.  IdGlobal.pas declares UInt8 when HAS_UInt8 is not defined.  So there is no reason for IdBuffer.pas to not know what UInt8 is, whether it comes from Indy's IdGlobal unit or the RTL's System unit.

 

My guess is that you probably have multiple versions of Indy's source code on your computer, and IdBuffer.pas is finding an older version of IdGlobal that does not implement UInt8 for Delphi 2007.

22 hours ago, eivindbakkestuen said:

Is D2007 meant to be supported still?

Yes.  At least until Indy 11 is released (no ETA on that at this time), which will drop support for Delphi 2007 and earlier going forward.

22 hours ago, eivindbakkestuen said:

I couldn't find a definitive document to say what IDE/compilers are currently supported.

Because there isn't one.

  • Like 1

Share this post


Link to post
4 hours ago, Remy Lebeau said:

which will drop support for Delphi 2007 and earlier going forward

Just out of curiosity: which versions will be supported? From Delphi 2009 and up?

Share this post


Link to post
17 hours ago, Dave Nottage said:

Just out of curiosity: which versions will be supported? From Delphi 2009 and up?

Yes, exactly.  We're going to be dropping support for old compilers, Delphi and FreePascal alike, which do not support UnicodeString (we are not going to handle WideString).  Providing backwards compatibility for AnsiString when Unicode is now part of most modern network protocols, as well as modren RTLs being Unicode-based, has made a real mess of the codebase.  We are also dropping support for .NET completely.  Indy 11 is intended to be a maintenance release to do some much-needed cleanup.

  • Like 2

Share this post


Link to post

Sorry to read this ..
Especially old projects, which cannot be upgraded to a new Delphi version, will probably have to stop at INDY 10 ..

Share this post


Link to post
17 hours ago, HolgerX said:

Sorry to read this ..
Especially old projects, which cannot be upgraded to a new Delphi version, will probably have to stop at INDY 10 ..

Yes.  Indy 11 will just be a maintenance cleanup, no real new functionality (anything that does get added will likely be able to backport to Indy 10), so old projects won't have to worry about Indy 11.  But Indy 12 will likely start making big changes and adding new features, and it likely won't make sense to try to support those in old compilers going forward.

Edited by Remy Lebeau

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×