I think you’d need to post a more complete overview of what you’re doing (instantiating saving the model and the C++ side). If you use triple backticks ``` to mark the beginning and end of the code, you’ll keep the forums from screwing up the formatting.
Best regards
Thomas