From: Adam Shelly Date: 2008-08-13T07:31:48+09:00 Subject: Re: WIN32OLE -- cannot terminate Excel process On 8/12/08, David Mullet wrote: > If I modified that code to this... > > ews = nil > ewb = nil > excel = nil > WIN32OLE.ole_free( ews) > WIN32OLE.ole_free( ewb) > WIN32OLE.ole_free( excel) > GC.start > > ...the Excel process terminated properly. > > My suggestions: > > A) Set object variables to nil before calling ole_free. I can see how you can free up object memory with ews = nil; #... GC.start But I'm not sure what calling ole_free after assigning to nil could possibly do... How is ews = nil; WIN32OLE.ole_free( ews) any different from: WIN32OLE.ole_free( nil) ? -Adam