From: Simon Strandgaard <0bz63fz3m1qt3001@...> Date: 2003-04-09T07:56:43+09:00 Subject: Re: [embedding] keeping track of non-exported global variables On Wed, 09 Apr 2003 02:53:13 +0900, Mauricio Fern�ndez wrote: > Here's my guess: suppose you don't do rb_gc_unregister_address. > Then, Ruby keeps a pointer to the VALUE, even though you object is dead. Yes, dangling pointers is dangerous, because they ofthen result in segfaults and those can be boring to debug :-) Thus proper cleanup is important! Objects::~Objects() { rb_gc_unregister_address(&objects); } Unregistering all objects: Is this dtor sufficent ??? Should I manualy erase each element first ??? or is this unnecessary? -- Simon Strandgaard