Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.ruby > #7345

How to release or disconnect the win32ole objects

X-Received by 10.157.67.171 with SMTP id t43mr5214657ote.38.1489068669194; Thu, 09 Mar 2017 06:11:09 -0800 (PST)
X-Received by 10.157.41.152 with SMTP id n24mr1518765otb.0.1489068669119; Thu, 09 Mar 2017 06:11:09 -0800 (PST)
Path csiph.com!feeder.erje.net!2.us.feeder.erje.net!news.glorb.com!u69no1534982ita.0!news-out.google.com!15ni9712itm.0!nntp.google.com!w124no1533642itb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups comp.lang.ruby
Date Thu, 9 Mar 2017 06:11:08 -0800 (PST)
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=202.153.34.22; posting-account=OeZ0NgoAAABhbY9Lwl8xAK3Psssnt_fa
NNTP-Posting-Host 202.153.34.22
User-Agent G2/1.0
MIME-Version 1.0
Message-ID <8188fc7f-2947-4556-8338-e276644cdd29@googlegroups.com> (permalink)
Subject How to release or disconnect the win32ole objects
From satya28@gmail.com
Injection-Date Thu, 09 Mar 2017 14:11:09 +0000
Content-Type text/plain; charset=UTF-8
Xref csiph.com comp.lang.ruby:7345

Show key headers only | View raw


Hi,
 I'm facing a problem on releasing/free up the win32 ole objects.
 Here is what I did, but it didn't work.

 I'm creating an ole object to our application like below.

 @automation = WIN32OLE.new( "Wolfson.WISCE.WISCEAutomation" )
 @automation.ole_free
 
But it's not free up the above object.
If I tried with 
 @automation = nil 
 GC.start

The above stuff didn't work for me though the object is nil, It shows me that still I have connection with the app.

Please help me on this, how can we free up completely the ole object.

Thanks,
Satya 

Back to comp.lang.ruby | Previous | Next | Find similar


Thread

How to release or disconnect the win32ole objects satya28@gmail.com - 2017-03-09 06:11 -0800

csiph-web