dynamic loading.

Is it possible in QNX4.25, to dynamically load libraries at run time.
The problem statement :-
i wanted to load memory with set of data based on configuration at run
time.
The data size is fixed ,lets say of 1000 bytes. and the data to be loaded
into the memory is known upfront for a particular configuration.

we have an idea to create libraries for each configuration and at run time
load them when configuration is read.

is it possible to dynamically load in QNX4.25 OS?
Thanks,
NKR

radha krishnan <radha.nk@geind.ge.com> wrote:

Is it possible in QNX4.25, to dynamically load libraries at run time.
The problem statement :-
i wanted to load memory with set of data based on configuration at run
time.
The data size is fixed ,lets say of 1000 bytes. and the data to be loaded
into the memory is known upfront for a particular configuration.

we have an idea to create libraries for each configuration and at run time
load them when configuration is read.

is it possible to dynamically load in QNX4.25 OS?

There is no method for dynamically linking in this way under QNX 4.25.

One work-around, though is to use message passing to a server that
will do the right thing, and load the correct server based on the
configuration information.

ftp.qnx.com:///usr/free/qnx4/os/samples/misc/ca_pci_msg.tgz is an
example of doing this sort of covering library for IPC to cover
the _CA_PCI BIOS calls, and turn them into the server.

Then, have several version of the server side, for the different
implementations, and have them all register the same name, but
only run the correct one.

-David

David Gibbs
QNX Training Services
dagibbs@qnx.com