From: brabuhr@... Date: 2010-01-14T01:49:12+09:00 Subject: Re: WIN32OLE memory leaks On Wed, Jan 13, 2010 at 10:55 AM, Chuck Remes wrote: > On Jan 12, 2010, at 4:10 PM, Luis Lavena wrote: >> On Jan 12, 6:19 pm, Chuck Remes wrote: >>> In my ruby code I am making a call out to a COM object that is >>> returning an array of objects. I extract some information from these >>> objects and then request a new batch to do the same work all over again. >>> >>> Even though I am clearing the received array out, my program slowly >>> leaks memory until it hits its limit (around 1.4 GB on Windows) and >>> dies. >> >> Please include exact and complete version of Ruby you're using (ruby - >> v) and under which Windows flavor. > > Here's some code. This is running against 1.8.6-p383 (from > rubyinstaller.org) on Windows XP SP3 plus all the latest patches (Windows > Update runs weekly). Are you able to do a test run with another ruby build, e.g. 1.8.7/1.9.1 from: http://www.ruby-lang.org/en/downloads/ You see the same behavior even skipping the interaction with mongo?