From: Csaba Henk Date: 2005-03-23T12:14:49+09:00 Subject: Re: memory leak On 2005-03-23, Kirk Haines wrote: > For hard to find leaks, that's helpful. Also (and it'd slow the !#$%@!!! > out of your program if you do it a lot): > > count = 0; ObjectSpace.each_object {count += 1} > > Gives you a count of the current number of objects. If you do this in key > places (probably don't want to do it out of set_trace_func), it might help. Maybe rather just count = ObjectSpace.each_object {} ? Csaba