-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
C++ destructors not being called? #36
Comments
The problem seems to be that call to |
Hi! I'm back from vacation. This looks like a legit issue. Did you find a fix? If yes, feel free to make a pull request. |
I haven't yet. Overriding the call to |
OK. I have seen something similar with CasADi. I wanted to make another iteration on the design anyway, so hopefully a cleaner design will sort this out as well. |
Ok, sounds good. We'd love to be able to use this in Drake, so I'd be happy to help if I can. I don't have any experience with swig's internals, but can at the very least keep trying out whatever you have on our system. |
This seems to have been fixed in 269a408 Thanks! |
I just started experimenting with swig-matlab as a possible way to replace our huge amount of hand-written mexFunction code, and it looks very promising. However, I'm having trouble understanding how wrapped C++ classes are handled: it looks like the class destructor is never called, and the class may never be deallocated.
My test case is something like this:
Using swig with python, I get the correct behavior:
But with swig-matlab, the destructor seems to never be called, even when I
clear mex
or exit matlab.Is this an expected behavior? I see the same issue before and after f5532b8
The text was updated successfully, but these errors were encountered: