Why am I getting incorrect values when calling op_ima_obj_attr_get()?

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

Why am I getting incorrect values when calling op_ima_obj_attr_get()?

Solution

One common problem is that you may be using a variable which is not declared to be the correct type. For example, the attribute bit capacity in a subqueue is of type double. If you declare a variable as an integer:int qsize;If you then call:op_ima_obj_attr_get(subq_row_id, bit capacity, &qsize);then the op_ima_obj_attr_get KP will treat the variable qsize as if it were of type double, but because qsize was declared as an integer, qsize will be set incorrectly.To correct the problem make sure the variable you pass into op_ima_obj_attr_get is of the correct type for that attribute, e.g.:double qsize;

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