From: Eric Mahurin Date: 2005-10-18T02:07:51+09:00 Subject: Re: Help! define_method leaking procs... --- Jamis Buck wrote: > On Oct 16, 2005, at 6:57 PM, Lyndon Samson wrote: > 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. Would you mind showing us a snippet of code that demonstrates the problem? Maybe there is some circular references? __________________________________ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com