Skip to content

Latest commit

 

History

History
14 lines (10 loc) · 812 Bytes

how_to_debug_c_api_issues.md

File metadata and controls

14 lines (10 loc) · 812 Bytes

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