Hi !
I am doing a binding to the R library with NativeBoost.
So I create some external objects and apply some functions on them.
If the handle to the object is not valid, either the function crashes or gives a bad result.
How can I ensure to have a valid pointer at anytime ?
I see two solutions:
-
Either check at any NativeBoost call that the handle is valid (by checking the session id)
-
Or do a proxy that checks the session and recreate the external object.
What do you think ?
Thanks in advance,
Cheers,
Vincent BLONDEAU