Patrick wrote:
> I was looking at the typemap for std::vector in lib/csharp/vector.i and
> I did not find a destructor for the vector. I noticed that the Dispose()
> method just deletes the IntPtr, but doesn't call into the static lib, it
> seems like that's a problem, but I'm sure that I just don't get it
> somehow. Can someone explain this? thanks
There is no destructor declared, it is implicit. The C# destructor
wrapper that is generated for the implicit destructor (the Dispose
method) does make a PInvoke call which calls delete on the underlying
instance. You should be able to see that - I guess this is what you mean
by the delete the IntPtr. I'm not sure what more you are expecting as
that is how one calls the destructor.
William
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone_______________________________________________
Swig-user mailing list
Swig-user@...
https://lists.sourceforge.net/lists/listinfo/swig-user