Watch, Follow, &
Connect with Us

Please visit our new home
community.embarcadero.com.


Welcome, Guest
Guest Settings
Help

Thread: Can't install package using a sub configuration in the IDE


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


Permlink Replies: 4 - Last Post: Jun 19, 2017 2:25 PM Last Post By: totte karlsson Threads: [ Previous | Next ]
totte karlsson

Posts: 64
Registered: 11/8/99
Can't install package using a sub configuration in the IDE  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 3, 2017 1:07 PM
The following relates to installation of packages in the Tokyo C++ Builder IDE.

When creating new 'Build Configuration', in the IDE, say by right clicking on the default Debug configuration, creating a new configurations, call it bcc32, the following structure is obtained in the Project manager view:

MyPackage
... Build Configurations (bcc32)
...... Debug
......... bcc32

When selecting the sub configuration and performing an install, I get a 'Can't load package MyPackage.bpl, The specified module could not be found.

This usually means that there are DLL's or BPL's not on the path. In this case however, the system paths are set, and the package installs OK selecting the Debug configuration.

Whys is the sub configuration not working? Is it not supposed too?

Edited by: totte karlsson on Jun 3, 2017 1:11 PM

Remy Lebeau (Te...


Posts: 8,716
Registered: 12/23/01
Re: Can't install package using a sub configuration in the IDE [Edit]  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 5, 2017 10:08 AM   in response to: totte karlsson in response to: totte karlsson
totte karlsson wrote:

When selecting the sub configuration and performing an install, I get
a 'Can't load package MyPackage.bpl, The specified module could not
be found.

This usually means that there are DLL's or BPL's not on the path. In
this case however, the system paths are set, and the package installs
OK selecting the Debug configuration.

You can use a tool like SysInternals Process Monitor
(https://technet.microsoft.com/en-us/sysinternals/processmonitor.aspx)
to find out exactly which file is failing to be found, and where
exactly it is being looked for.

--
Remy Lebeau (TeamB)
totte karlsson

Posts: 64
Registered: 11/8/99
Re: Can't install package using a sub configuration in the IDE [Edit]  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 18, 2017 1:09 PM   in response to: Remy Lebeau (Te... in response to: Remy Lebeau (Te...
You can use a tool like SysInternals Process Monitor
(https://technet.microsoft.com/en-us/sysinternals/processmonitor.aspx)
to find out exactly which file is failing to be found, and where
exactly it is being looked for.

I've been trying to track this problem down, using the SysInternals Processmonitor tool.
I'm getting a somewhat confusing result. It seems the ide is looking for BPL files in wrong places.

The following output shows whats happens when trying to install my custom package, DuneComponents:

1   Process Name	PID	Operation	Path	Result
2   bds.exe	12244	CreateFile	C:\pDisk\build\bcc32\debug\bin\DuneComponentsDD.bpl	NAME NOT FOUND
3   bds.exe	12244	CreateFile	C:\Program Files (x86)\Embarcadero\Studio\19.0\bin\bds\identity250.bpl	SUCCESS
4   bds.exe	12244	QueryBasicInformationFile	C:\Program Files (x86)\Embarcadero\Studio\19.0\bin\bds\identity250.bpl	SUCCESS
5   bds.exe	12244	CloseFile	C:\Program Files (x86)\Embarcadero\Studio\19.0\bin\bds\identity250.bpl	SUCCESS
6   bds.exe	12244	CreateFile	C:\pDisk\libs\dsl\VCL\Components\vcl.bpl	NAME NOT FOUND
7   bds.exe	12244	CreateFile	C:\pDisk\libs\dsl\VCL\Components\vclimg.bpl	NAME NOT FOUND
8   bds.exe	12244	CreateFile	C:\pDisk\libs\dsl\VCL\Components\vclx.bpl	NAME NOT FOUND
9   bds.exe	12244	CreateFile	C:\pDisk\libs\dsl\VCL\Components\vclactnband.bpl	NAME NOT FOUND
10 bds.exe	12244	CreateFile	C:\pDisk\libs\dsl\VCL\Components\VCLCommon.bpl	NAME NOT FOUND
11 bds.exe	12244	CreateFile	C:\pDisk\libs\dsl\VCL\Components\rtl.bpl	NAME NOT FOUND
12 bds.exe	12244	CreateFile	C:\pDisk\build\bcc32\debug\bin\DuneComponentsDD.bpl	NAME NOT FOUND
13 bds.exe	12244	CreateFile	C:\pDisk\build\bcc32\debug\bin\DuneComponents.bpl	SUCCESS
14 bds.exe	12244	QueryNetworkOpenInformationFile	C:\pDisk\build\bcc32\debug\bin\DuneComponents.bpl	SUCCESS
15 bds.exe	12244	CloseFile	C:\pDisk\build\bcc32\debug\bin\DuneComponents.bpl	SUCCESS
16 bds.exe	12244	CreateFile	C:\pDisk\build\bcc32\debug\bin\DuneComponents.bpl	SUCCESS
17 bds.exe	12244	QueryNetworkOpenInformationFile	C:\pDisk\build\bcc32\debug\bin\DuneComponents.bpl	SUCCESS
18 bds.exe	12244	CloseFile	C:\pDisk\build\bcc32\debug\bin\DuneComponents.bpl	SUCCESS
19 bds.exe	12244	CreateFile	C:\pDisk\build\bcc32\debug\bin\DuneComponents.bpl	SUCCESS
20 bds.exe	12244	QueryNetworkOpenInformationFile	C:\pDisk\build\bcc32\debug\bin\DuneComponents.bpl	SUCCESS
21 bds.exe	12244	CloseFile	C:\pDisk\build\bcc32\debug\bin\DuneComponents.bpl	SUCCESS
22 bds.exe	12244	CreateFile	C:\pDisk\build\bcc32\debug\bin\DuneComponentsDD.bpl	NAME NOT FOUND
23 bds.exe	12244	CreateFile	C:\pDisk\build\bcc32\debug\bin\DuneComponentsDD.bpl	NAME NOT FOUND
24 bds.exe	12244	CreateFile	C:\pDisk\build\bcc32\debug\bin\DuneComponentsDD.bpl	NAME NOT FOUND
25 bds.exe	12244	CreateFile	C:\pDisk\build\bcc32\debug\bin\DuneComponentsDD.bpl	NAME NOT FOUND
26 bds.exe	12244	CreateFile	C:\pDisk\build\bcc32\debug\bin\DuneComponentsDD.bpl	NAME NOT FOUND
27 bds.exe	12244	CreateFile	C:\Program Files (x86)\Embarcadero\Studio\19.0\bin\bds\identity250.bpl	SUCCESS
28 bds.exe	12244	QueryBasicInformationFile	C:\Program Files (x86)\Embarcadero\Studio\19.0\bin\bds\identity250.bpl	SUCCESS
29 bds.exe	12244	CloseFile	C:\Program Files (x86)\Embarcadero\Studio\19.0\bin\bds\identity250.bpl	SUCCESS

Second line shows that BDS.exe tries to CreateFile DuneComponentsDD.bpl. The "DD" part of the name is a lib suffix.

Further down, line13 shows that the bpl file, without the DD suffix, is created successfully.

What seem 'odd' is the attempts to create system IDE packages in my custom source path c:\pDisk\libs\dsl\VCL\Components, line 6-12

I'm not sure what to make of the above information. It seems that the main problem is perhaps related to the suffix part of the BPL?

When switching to the 'Debug' configuration, the package does install properly, and Sysinternals shows:


Process Name	PID	Operation	Path	Result
bds.exe	7152	Load Image	C:\pDisk\build\bcc32\debug\bin\DuneComponentsDD.bpl	SUCCESS
bds.exe	7152	Load Image	C:\pDisk\build\bcc32\debug\bin\DuneComponentsDD.bpl	SUCCESS
bds.exe	7152	QueryOpen	D:\Program Files Extra\Windows Performance Toolkit\VCLCommon.bpl	NAME NOT FOUND
bds.exe	7152	QueryOpen	D:\Program Files Extra\Windows Performance Toolkit\VCLCommon.bpl	NAME NOT FOUND
bds.exe	7152	QueryOpen	D:\Program Files Extra\Windows Performance Toolkit\VCLCommon.bpl	NAME NOT FOUND
bds.exe	7152	QueryOpen	D:\Program Files Extra\Windows Performance Toolkit\VCLCommon.bpl	NAME NOT FOUND
bds.exe	7152	Load Image	C:\pDisk\build\bcc32\debug\bin\VCLCommon.bpl	SUCCESS
bds.exe	7152	Load Image	C:\pDisk\build\bcc32\debug\bin\VCLCommon.bpl	SUCCESS
bds.exe	7152	Load Image	C:\pDisk\build\bcc32\debug\bin\VCLCommon.bpl	SUCCESS
bds.exe	7152	Load Image	C:\pDisk\build\bcc32\debug\bin\VCLCommon.bpl	SUCCESS
bds.exe	7152	QueryOpen	D:\Program Files Extra\Windows Performance Toolkit\VCLCommon.bpl	NAME NOT FOUND
bds.exe	7152	Load Image	C:\pDisk\build\bcc32\debug\bin\VCLCommon.bpl	SUCCESS
bds.exe	7152	Load Image	C:\pDisk\build\bcc32\debug\bin\VCLCommon.bpl	SUCCESS
bds.exe	7152	QueryOpen	D:\Program Files Extra\Windows Performance Toolkit\VCLCommon.bpl	NAME NOT FOUND
 


The output is quite different. And it seems that the IDE is looking in really odd folders. The VCLCommon.bpl is my own custom, non visual package. Its looking for it in the folder
"D:\Program Files Extra\Windows Performance Toolkit\", and I have no idea why?

Seems that the 'sub' configuration management in the IDE is simply broken? Any ideas?

-tk

Edited by: totte karlsson on Jun 19, 2017 9:31 AM

Remy Lebeau (Te...


Posts: 8,716
Registered: 12/23/01
Re: Can't install package using a sub configuration in the IDE [Edit] [Edit]  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 19, 2017 10:06 AM   in response to: totte karlsson in response to: totte karlsson
totte karlsson wrote:

It seems the ide is looking for BPL files in wrong places.

BPLs are just DLLs, and they are usually loaded by filename only, no
path, so they are subject to the standard rules for locating any DLL:

https://msdn.microsoft.com/en-us/library/windows/desktop/ms682586.aspx

And it seems that the IDE is looking in really odd folders. The
VCLCommon.bpl is my own custom, non visual package. Its looking for it
in the folder "D:\Program Files Extra\Windows Performance Toolkit\",
and I have no idea why?

That folder is likely in the System's global search path. Check your
environment settings.

--
Remy Lebeau (TeamB)
totte karlsson

Posts: 64
Registered: 11/8/99
Re: Can't install package using a sub configuration in the IDE [Edit] [Edit]  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 19, 2017 2:25 PM   in response to: Remy Lebeau (Te... in response to: Remy Lebeau (Te...
Remy Lebeau (TeamB) wrote:


That folder is likely in the System's global search path. Check your
environment settings.

That explains it (!), and yes, those paths where on my search path.

So perhaps the problem is with the suffix part of the BPL? I'll check removing the suffix to see if that makes a difference..
-tk
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02