From: Tilman Sauerbeck Date: 2004-12-19T21:51:48+09:00 Subject: Re: GC run at end of script execution - order in which objects are claimed? ts [2004-12-03 17:47]: > >>>>> "T" == Tilman Sauerbeck writes: > > T> I'm confused - I thought I'm telling Ruby in what order the objects > T> should be freed by the way I'm calling rb_gc_mark(). > > T> If I cannot define the order in which the objects are freed by the > T> rb_gc_mark() function calls, how else could I do that? > > I can *only* give you an example > > [snip] > > To make this example work, `bz2' must be freed before `io' because it must > flush its buffer. > > bz2.c is written in such way, that it don't depend in what order the > objects will be freed. Thanks, I'll consider jumping through all of this hoops to make it work. -- Regards, Tilman