[ruby-dev:46871] Re: [ruby-changes:26796] nobu:r38848 (trunk): win32ole.rb: use TracePoint

From: Nobuyoshi Nakada <nobu@...>
Date: 2013-01-17 05:05:15 UTC
List: ruby-dev #46871
なかだです。

(13/01/17 1:12), SASADA Koichi wrote:
>  この変更ですが,TracePoint をこういう目的に使って良いか自信がないので,
> 
> - win32ole は元に戻す
> - テストは,win32ole が require されていたら skip する
> 
> というふうにしませんか?

Thread.startなどに対応していなかったので「とりあえず動くようにはしてみ
た」程度だったのですが、やはりこれだけでは全く足りていないようです。

  $ ./bin/ruby --disable=gems -e 'th = Thread.start {sleep; WIN32OLE.new("Scripting.Dictionary")}' \
    -e 'require "win32ole"' -e 'th.run' -e 'p th.join'
  -e:1:in `initialize': failed to create WIN32OLE object from `Scripting.Dictionary' (WIN32OLERuntimeError)
      HRESULT error code:0x800401f0
        CoInitialize has not been called.
          from -e:1:in `new'
          from -e:1:in `block in <main>'

>  どちらかというと,svar の扱いをどうにかするか,というほうがいいかと
> 思っています.

win32oleは別として、こちらは賛成。

-- 
--- 僕の前にBugはない。
--- 僕の後ろにBugはできる。
    中田 伸悦

In This Thread