cmajor-lang/cmajor

COM API throws exception in setInputFrames

0xchase opened this issue · 1 comments

Had some more time to work on Rust bindings to the COM API today. Upon calling setInputFrames on a performer Rust subsequently fails to catch a C++ exception. Presumably I'm calling the API incorrectly but my understanding is no exceptions should be thrown regardless.

Adding a cmaj::catchAllErrors to PerformerBase::setInputFrames and printing it results in the following output:

error: Internal compiler error: "getEndpointHandler:808"

which you might find helpful in tracking down where the exception is being thrown.

I've just released an updated version of the library, currently in pre-release, which includes a result return code for these operations. The implementation should return failures for these operations rather than raise exceptions (via the assert mechanism).

This should resolve your issue

https://github.com/cmajor-lang/cmajor/releases/tag/1.0.2582