Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: Problem updating Indy in XE2


This question is answered. Helpful answers available: 1. Correct answers available: 1.


Permlink Replies: 4 - Last Post: Aug 15, 2016 12:05 PM Last Post By: Grzegorz Podsia...
Grzegorz Podsia...

Posts: 3
Registered: 1/29/10
Problem updating Indy in XE2  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Aug 15, 2016 4:35 AM
Hi,

here is my problem: I'm trying to update Indy in C++ Builder XE2, and I'm stuck on package installation - I'm getting:

Can't load package C:\Program Files (x86)\Embarcadero\RAD Studio\9.0\Indy10\dclIndyCore160.bpl.
The specified module could not be found.

(and same for dclIndyProtocols160.bpl.)
I am ware that this usually happens when paths are not correct, or some libraries (dll or similar) are missing.

I did proper cleanup of old Indy version - it's completely removed, I did check whole disk for any files left and nothing is.
I have tried version I did build myself from latest trunk version, and one downloaded pre-build from http://www.mjfreelancing.com/indy.htm - same problem on both

I have C:\Program Files (x86)\Embarcadero\RAD Studio\9.0\Indy10\ added to PATH, and to all possible paths in Options - LIbrary in Delphi section and C++ sections.
I did check BPL files for missing import libraries and don't see any problem.

So - I'll be grateful for any suggestions.
Remy Lebeau (Te...


Posts: 9,447
Registered: 12/23/01
Re: Problem updating Indy in XE2
Helpful
Click to report abuse...   Click to reply to this thread Reply
  Posted: Aug 15, 2016 9:53 AM   in response to: Grzegorz Podsia... in response to: Grzegorz Podsia...
Grzegorz wrote:

here is my problem: I'm trying to update Indy in C++ Builder XE2, and
I'm stuck on package installation - I'm getting:

Can't load package C:\Program Files (x86)\Embarcadero\RAD
Studio\9.0\Indy10\dclIndyCore160.bpl. *The specified module could not
be found.*

(and same for dclIndyProtocols160.bpl.)

That most likely means you do not have IndySystem160.bpl, IndyCore160.bpl,
and/or IndyProtocols160.bpl runtime packages in a folder on the search path
where the design-time packages can find them. Use a tool like SysInternals
Process Monitor (https://technet.microsoft.com/en-us/sysinternals/processmonitor.aspx)
to see exactly which BPL is failing to load and which folders are being searched
for it.

--
Remy Lebeau (TeamB)
Grzegorz Podsia...

Posts: 3
Registered: 1/29/10
Re: Problem updating Indy in XE2  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Aug 15, 2016 10:27 AM   in response to: Remy Lebeau (Te... in response to: Remy Lebeau (Te...
here is my problem: I'm trying to update Indy in C++ Builder XE2, and
I'm stuck on package installation - I'm getting:
Can't load package C:\Program Files (x86)\Embarcadero\RAD
Studio\9.0\Indy10\dclIndyCore160.bpl. *The specified module could not
be found.*
(and same for dclIndyProtocols160.bpl.)
That most likely means you do not have IndySystem160.bpl, IndyCore160.bpl,
and/or IndyProtocols160.bpl runtime packages in a folder on the search path
where the design-time packages can find them. Use a tool like SysInternals
Process Monitor (https://technet.microsoft.com/en-us/sysinternals/processmonitor.aspx)
to see exactly which BPL is failing to load and which folders are being searched
for it.

They are all there.
I'm up to the point where I have multiple folders with: dclIndyCore160.bpl, dclIndyProtocols160.bpl, IndyCore160.bpl, IndyProtocols160.bpl, IndySystem160.bpl
one original set which loads fine, and others from different newer builds (some I did myself, some from mjfreelancing.com/indy.htm) which does not load

I did use Process Monitor yesterday trying to find the problem - and I did not found any errors there. I also did use dependency walker today on those files, and all looks fine...

I will do one more process explorer test today without any filters to make sure I'm not missing anything.
Remy Lebeau (Te...


Posts: 9,447
Registered: 12/23/01
Re: Problem updating Indy in XE2  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Aug 15, 2016 11:47 AM   in response to: Grzegorz Podsia... in response to: Grzegorz Podsia...
Grzegorz wrote:

They are all there.

All where exactly?

I'm up to the point where I have multiple folders with:
dclIndyCore160.bpl, dclIndyProtocols160.bpl, IndyCore160.bpl,
IndyProtocols160.bpl, IndySystem160.bpl

one original set which loads fine, and others from different newer
builds (some I did myself, some from mjfreelancing.com/indy.htm)
which does not load

You have multiple sets of files. Best if there is only one set. It is possible
that you are introducing dependancy issues if a newer design-time BPL is
being loaded but finds an older run-time BPL and fails to find a required
symbol in it.

I did use Process Monitor yesterday trying to find the problem - and I
did not found any errors there. I also did use dependency walker today
on those files, and all looks fine...

Well, the error message is pretty specific: "The specified module could not
be found". That is a dependancy issue. Process Monitor can only show you
if a dependant DLL/BPL is found or not, but it cannot show you if it is missing
a required dependant export. It has been a long time since I used Dependancy
Walker, but it should be able to tell you what export is missing.

--
Remy Lebeau (TeamB)
Grzegorz Podsia...

Posts: 3
Registered: 1/29/10
Re: Problem updating Indy in XE2  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Aug 15, 2016 12:05 PM   in response to: Remy Lebeau (Te... in response to: Remy Lebeau (Te...
Problem solved - thanks Remy for making me look at Process Monitor again and checking paths there.

For some reason I had active user override for PATH in Tools/Options/Environment variables/Environment variables - after removing it all is fine now.
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02