From: "nikolai.weibull@..." Date: 2007-08-20T16:09:58+09:00 Subject: Re: Won't WIN32OLE_EVENT.new leak? On Aug 17, 3:35 pm, Masaki Suketa wrote: > Hello, > In message "Won't WIN32OLE_EVENT.new leak?" > on 07/08/16, "nikolai.weib...@gmail.com" writes: > > > Won't WIN32OLE_EVENT.new leak? A WIN32OLE object will sooner or later > > be freed (right?), when garbage collection kicks in. But a > > WIN32OLE_EVENT object will never be freed, as it is kept in a global > > array and is never removed from that array. > > WIN32OLE_EVENT object is freed when ruby process terminated. > And while ruby process running WIN32OLE_EVENT object is not freed. > > Because WIN32OLE_EVENT object should not be freed until > WIN32OLE object is freed. Can't the WIN32OLE_EVENT object be linked to the WIN32OLE object so that when the WIN32OLE object is freed, we make sure WIN32OLE_EVENT is freed as well? nikolai