Having spent the last few days undoing the self-tie of my code, and then
fixing the problems that drew from that, I find myself essentially back to
where I started from: my objects always seem to have a ref-count of at
least two, thus when the hash is untie'd or the reference undef'd the
destructor doesn't get called. When the program terminates, the destructor
finally gets called.
The typemap entry creates the eventual RV using newRV_noinc(), and the XS
glue automatically makes this a mortal on the stack. Is there something I'm
missing?
Randy
--
-------------------------------------------------------------------------------
Randy J. Ray | Programming is a Dark Art [...] The programmer is fighting
[EMAIL PROTECTED] | against the two most destructive forces in the universe:
415-777-9810 x246 | entropy and human stupidity. --Dr. Damian Conway