M. Edward (Ed) Borasky
10/28/2007 5:22:00 AM
redroofgreentree wrote:
> Hi all,
>
> I have this really nasty SWIG/ruby GC issue. (Namely objects are being
> freed when I don't want them to be freed).
>
> These bugs are hard to track down, here's what would really help me:
>
> Is there some way I can tell ruby that when it frees an object, to ZERO
> out that entire region in memory? It'll make tracking down the bug so much
> easier.
>
> Thanks!
>
Well ... I guess I would start off by saying, "gdb is your friend". :)
But all SWIG does is generate wrapper/interface code between the Ruby
and the C or C++ code. Can you make this work without SWIG?