I was testing my build scripts for GExperts with all installed Delphi versions, noticed that Delphi 2010 did not work, found that it was installed to the wrong directory (c:\delphi\delphi2012), uninstalled and reinstalled it. And then this: (see question on stackoverflow)

I was testing my  build scripts for GExperts with all installed Delphi versions, noticed that Delphi 2010 did not work, found that it was installed to the wrong directory (c:\delphi\delphi2012), uninstalled and reinstalled it. And then this: (see question on stackoverflow)
I have no idea what happened. Any hints?
http://stackoverflow.com/q/22894474/49925?sgp=2

Comments

  1. Check your PATH variable because thats where the bpl directory and some others are added during the installation. Depending on how many Delphi installations or other things you have installed that modified that path it might exceed its maximum length which breaks it.

    ReplyDelete
  2. Stefan Glienke No, the length of the PATH isn't the reason. I just reduced it to the bare minimum (225 characters, less than a quarter of the length it had before) and it didn't make any difference. And if that were the reason, shouldn't it affect all other Delphi installations in the same way? The all work fine. It's just the bl** Delphi 2010 that shows this behavior.
    I also checked the path contents, there is nothing suspicious in there.

    ReplyDelete
  3. I guess when you say it only happens when you compile the project, that means the IDE can load this package (via dclIndyCore.bpl) fine?

    ReplyDelete
  4. Yes, the IDE works fine. I can even drop Indy components on a form and compile the program as long as it doesn't use packages.
    Also, I just tried to load the IndyCore140.bpl package via LoadPackage in a program:

    procedure TForm1.Button1Click(Sender: TObject);
    begin
        SysUtils.LoadPackage('IndyCore140.bpl');
    end;

    Works fine.

    ReplyDelete
  5. Trying LoadPackage was the next thing I was going to suggest, assuming that it isn't acutally the IndyCore package that can't be loaded but some other package it depends on. But since that works too, I'm out of ideas.

    ReplyDelete
  6. No, I've got another one: It's probably the indycore.dcp file that the compiler cannot find. Is that file in the library path?

    ReplyDelete
  7. No, it's not! Look at the command line you posted! It doesn't contain c:\delphi\delphi2010\lib\indy10 !
    I just temporarily removed that directory from the library path in my Delphi 2010 installation and got the same error.

    ReplyDelete
  8. Daniela Osterhagen That's it! You found the problem. Thank you very much!
    Do you want to post that to Stackoverflow yourself? Otherwise I will.

    ReplyDelete
  9. Glad to be of service. Go ahead, post it yourself. I can't be bothered.
    (Expect an invoice, as usual. ;-) )

    ReplyDelete
  10. Done http://stackoverflow.com/a/22897423/49925
    Thank you again. This was really getting on my nerves. I tried to find that problem for several hours.

    ReplyDelete
  11. Let us know if/when you find a solution.

    ReplyDelete
  12. Hmm. Somehow G+ didn't refresh. Thanks Daniela Osterhagen

    ReplyDelete

Post a Comment