From: ts Date: 2003-03-27T18:35:41+09:00 Subject: Re: [Q] Caveats of rb_global_variable() ? >>>>> "J" == Julian Snitow writes: J> It works, but is this a healthy practice? I.e., am I keeping these J> values from being deallocated until the program terminates, and if so, J> is there a better way to ensure that the GC does not cull these J> referenced objects while the StatArray instance exists, but to allow J> normal garbage collection afterwards? Well, it's really difficult to answer without seeing your C source but rb_global_variable() use rb_gc_register_variable() and the opposite is rb_gc_unregister_variable() Guy Decoux