ro - simple Demo

Description

This demo is an example of loading and using dynamic modules.

Required Environment

None.

How to Use

None.

Notes

This demo does not display anything on the screen. The only output is debugger output.

Description

The demo loads the dynamic modules Module and Module2, and calls the Module function Test. Test then internally calls the Module2 function Module2Func. The references for both Test and Module2Func are resolved automatically when the dynamic modules are loaded.

Module contains global object definitions and the definitions for the nninitStaticInit, nnroProlog and nnroEpilog functions. These functions are also called when calling the nn::ro::Module::DoInitialize and nn::ro::Module::DoFinalize functions.

Module also contains the nnroUnresolved function definition. Calling the Test function again after unloading Module2 causes the internal call to Module2Func to be changed to a call to nnroUnresolved.

NN_LOG is called from each dynamic module, but the instance is in a static module and the reference is resolved automatically when each module is loaded.

Revision History

2011/12/12
Deleted Execution Procedure, added new explanation.
2011/08/03
Initial version.

CONFIDENTIAL