Skip to content

OpenVINO™ is an open source toolkit for optimizing and deploying AI inference

812 B
Raw Blame

How to Debug C API Issues

C API provides exception handling, here are all possible return values of the functions:

https://github.com/openvinotoolkit/openvino/blob/d96c25844d6cfd5ad131539c8a0928266127b05a/src/bindings/c/include/openvino/c/ov_common.h#L68-L96

There are two main types of possible issues:

  • parameter checking issue: return value is -14, check the input parameters
  • C++ call exception issue: if C++ called by C interface throw exception, C interface will catch the exception but no throw to C user, just returns the status value, without a detailed message. If you want details, can print it in exception macro.

See also