These are chat archives for IndySockets/Indy

10th
Mar 2017
adbjn
@adbjn
Mar 10 2017 07:50
New to this forum. I have a problem installing Indy 10 for Delphi 2010 (Delphi 2010 came with RAD Studio). I will try to describe the problem in as few words as possible. To install the version of Indy I am using I have removed everything related to Indy that came with Delphi. That is, everyting related to Indy in the C:\Program Files (x86)\Embarcadero\RAD Studio\7.0\bin, lib and source directories. I have then copied a downloaded version of Indy to the three folders C:\Program files (x86)\Embarcadero\RAD Studio\7.0\source\Indy\Indy10\Core, Protocols and System and added all three paths to the Library Paths setting. I then build the downloaded IndySystem140.bpl, IndyCore140.bpl, IndyProtocols140.bpl, dclIndyCore140.bpl and dclIndyProtocols140.bpl, in that order. This works fine. I get the problem even with just two projects using Indy. The first one builds fine. The second one builds too. However, when I go back to build the first one again I get the error "[DCC Fatal Error] IndyCore140.dpk(91): F2051 Unit IdContext was compiled with a different version of IdGlobal.IdDisposeAndNil". If I rebuild the 5 Indy BPLs it works once more to build my two projects, but after both of my projects have been built the same situation occurs again. That is, the first project cannot build and gives me that error message. I don't know where to start searching for the solution to the problem. Neither IdContext.dcu nor IdGlobal.dcu seem to get recompiled after the BPLs were first built so I don't get why it complains about the versions not matching. The Indy version was downloaded at 2015-12-28 and it HAS worked fine before, however on this new computer I am setting up I cannot get it to work without this frustrating problem. I am reluctant to use a different version of Indy if I don't really really have to. The version from 2015-12-28 has been very stable. It is used in a very critical system that just HAS to work. Any suggestions for how to resolve this would be extremely appreciated.
adbjn
@adbjn
Mar 10 2017 08:12
Just checked again and IdGlobal does get recompiled but not IdContext. So, after the second project gets built they no longer have the same time stamp. Is this the problem? I thought Delphi was supposed to recompile everything that needed to be recompiled so this situation should never happen?
adbjn
@adbjn
Mar 10 2017 08:52
I resolved the problem by rebuilding ONLY IndyCore140.bpl instead of all five Indy BPLs. After I do this I can then rebuild the two projects any number of times with no error messages. I have no idea why this fixed the problem though, but would love to know...