Project

General

Profile

Actions

Bug #3277

closed

win32ole cannot print?

Added by rogerdpack (Roger Pack) almost 14 years ago. Updated almost 13 years ago.

Status:
Closed
Target version:
-
ruby -v:
ruby 1.9.3dev (2010-05-11 trunk 27724) [i386-mingw32]
Backport:
[ruby-core:30160]

Description

=begin
require 'win32ole'
wmi = WIN32OLE.connect("winmgmts://")
processes = wmi.ExecQuery("select * from win32_process")
processes.each{|p| puts p}

on 1.9.1 works
on ruby 1.9.3dev (2010-05-11 trunk 27724) [i386-mingw32]

bad.rb:4:in method_missing': unknown property or method: to_ary' (WIN32OLERuntimeError)
HRESULT error code:0x80020006
Unknown name.
from bad.rb:4:in puts' from bad.rb:4:in puts'
from bad.rb:4:in block in <main>' from bad.rb:4:in each'
from bad.rb:4:in `'

Is this expected? (if so then please close).
Thanks!
=end

Actions #1

Updated by mame (Yusuke Endoh) almost 14 years ago

  • Assignee set to suke (Masaki Suketa)

=begin

=end

Actions #2

Updated by suke (Masaki Suketa) almost 14 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

=begin
This issue was solved with changeset r27922.
Roger, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.

=end

Actions #3

Updated by rogerdpack (Roger Pack) about 13 years ago

=begin
Thanks. Seems to work well now (ruby 1.9.3dev (2011-02-18 trunk 30894) [i386-mingw32] )
=end

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0