From: Chuck Remes Date: 2010-01-14T06:09:16+09:00 Subject: Re: WIN32OLE memory leaks On Jan 13, 2010, at 10:49 AM, brabuhr@gmail.com wrote: > 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/ Running it with 1.9.1-p243 had the same results. I couldn't figure out how to install the "one-click" installers from the main ruby page. I kept getting regular zip files that didn't have any installation script. (Perhaps I just couldn't find it.) > > You see the same behavior even skipping the interaction with mongo? > I ran these tests without having mongo loaded at all (I commented out that code). The leak remains. cr