opnet

op_ici_install() function call within RTI callback causing OPNET to crash


I use Opnet in conjunction with other simulators for co-simulation under High Level Architecture.

Upon receiving co-simulation messages from other simulators (interaction-receive / attribute update), the callback routine attempts to schedule remote interrupt with ICI installed.

However, the op_ici_install() function call within the callback routine always result in fatal crash, with error Access Violation Exception, hence I suspect that op_ici_install function cannot be used from within RTI callback.

Please suggest probable causes and work around solutions.


Solution

  • More experiments confirmed that op_ici_install() would not work on an RTI callback. Work around solution is to use another process communication mechanism op_ev_state_install(), which can achieve pretty much the same function.