From: Jamis Buck Date: 2005-10-18T01:58:07+09:00 Subject: Re: Help! define_method leaking procs... On Oct 16, 2005, at 6:57 PM, Lyndon Samson wrote: > Have you thought about a ruby leak detector? > > You could monitor object allocation with define_finalizer and a > wrapped new. > Sort of like replacing new/delete in C++ We have identified and fixed the leak, and all is well now. Thanks, everyone, for your suggestions. If you're curious, the problem was fixed by calling undef_method on all the dynamically added methods before doing remove_const on the class. We also went through each class and removed all instance_variables from the class. Doing this seems to have allowed the Proc objects to be garbage collected. - Jamis