You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Q: Is releasing the model reference not needed for the "live" C API use ?
No, the model reference should not be released because the model is owned by SketchUp. In standalone API usage you need to do The SUCreate* function mention you need to release the model you create with them - because you will be owning them.
SUApplicationGetActiveModel doesn't mention anything about ownership, we can add a note about that in its documentation to make it clear that the application owns the model returned.
Q: What other differences are there from what is described in the standalone use primer section ...
Memory Management in the SketchUp C API ?
None really, you are only supposed to release the objects you own.
In the "Using SketchUp Live C API" example ...
https://github.com/SketchUp/sketchup-live-c-api/blob/master/docs/using-live-c-api.md#example
The
ruby_num_faces
function does not release it's reference to the "live" model.The primer page for standalone C API use has an example comment that says to always release the model reference, viz:
Q: Is releasing the model reference not needed for the "live" C API use ?
Q: What other differences are there from what is described in the standalone use primer section ...
Memory Management in the SketchUp C API ?
The text was updated successfully, but these errors were encountered: