Is the OPNET op_prg_list_free() Kernel Procedure recursive?In other words, if I have a List of Lists, can I call op_prg_list_free() on the parent list only?

Categories:
Solution Number:
S20652
Last Modified:
2013-08-20
Issue

Is the OPNET op_prg_list_free() Kernel Procedure recursive?In other words, if I have a List of Lists, can I call op_prg_list_free() on the parent list only?

Solution

The op_prg_list_free () Kernel Procedure is not recursive.So you will have to call this KP on each of the lists individually.Also note that op_prg_list_free() will only free shallow structures. If you have a List of deep structures, each structure will have to be removed and freed individually.

Environment

DES Kernel->Process Modeling/Coding

Attachments
NOTICE: Riverbed® product names have changed. Please refer to the Product List for a complete list of product names.
Can't find an answer? Create a case