Watch, Follow, &
Connect with Us

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


Welcome, Guest
Guest Settings
Help

Thread: Data module compiled in a BPL for main application


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


Permlink Replies: 3 - Last Post: Feb 28, 2018 6:26 AM Last Post By: James Williams Threads: [ Previous | Next ]
James Williams

Posts: 14
Registered: 6/9/99
Data module compiled in a BPL for main application  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 19, 2018 10:38 AM
Hello,

I would like to be able to move a data model "TDataModule" inherited class into its own BPL. Then, in my main application, I will have this module loaded statically. The problem that I am not quite understanding is that items on the datamodule need to be visible to the IDE for the forms that will use the property editor to link to items contained in the data module that was part of the BPL. How can I best achieve this, without having to make the BPL an installable module?

Thanks
Remy Lebeau (Te...


Posts: 9,447
Registered: 12/23/01
Re: Data module compiled in a BPL for main application  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 19, 2018 2:45 PM   in response to: James Williams in response to: James Williams
James Williams wrote:

I would like to be able to move a data model "TDataModule" inherited
class into its own BPL. Then, in my main application, I will have this
module loaded statically.

If you are compiling statically, then why do you need a BPL at all?

--
Remy Lebeau (TeamB)
James Williams

Posts: 14
Registered: 6/9/99
Re: Data module compiled in a BPL for main application  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 19, 2018 3:53 PM   in response to: Remy Lebeau (Te... in response to: Remy Lebeau (Te...
Remy Lebeau (TeamB) wrote:
James Williams wrote:

I would like to be able to move a data model "TDataModule" inherited
class into its own BPL. Then, in my main application, I will have this
module loaded statically.

If you are compiling statically, then why do you need a BPL at all?

--
Remy Lebeau (TeamB)

I want a BPL that is loaded/unloadable on demand. What I have is a large GUI application that generates CNC motion paths for a robot system to do some work. To help with the debug process of the motion planner, I want that part loaded/unloaded dynamically at the time the path needs to be generated. This thus maintains the state of the PLC process so that it does not need to be reset every time I need to tweek the motion path in the library file. I may have miss stated that I my original question in that it the current Data module is compiled into the main application from its .cpp file. However, since there are components in the data module that I need my motion planner to use, I need to put the data module in a BPL. So, this is what I am wanting:
The data module is placed into its own BPL
The main application does a static binding to the BPL.
A second BPL library thread contains the motion planner, which also links to the data module BPL for state information.
The motion planner is dynamically loaded when the main application is instructed to generate a motion path program, then the motion planner is unloaded from memory.

So, linking to the data module BPL is not the problem. However, what is a problem is that in the main application, the forms data sources can't get access to the data module during design time in the controls property editor. So that is what I am trying to figure out. How to get a data module contained in a BPL to be visible in the IDE form's property editors which use the data module.

Edited by: James Williams on Feb 28, 2018 6:25 AM
James Williams

Posts: 14
Registered: 6/9/99
Re: Data module compiled in a BPL for main application  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 28, 2018 6:26 AM   in response to: James Williams in response to: James Williams
A solution was found by include the unit into the main application, however exclude the unit from the Build.
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02