From: Masaki Suketa Date: 2006-04-08T08:20:41+09:00 Subject: Re: win32ole with COM method taking two out refs Hello, In message "Re: win32ole with COM method taking two out refs" on 06/04/08, Adam Gardiner writes: > In answer to your question: > > What is the result of the following? > > p ARGV[3] > > p ARGV[4] > > When I pass Object.new, the above outputs: > # > # > > If I try adding p ARGV[4].ole_methods, I get the following error: > ... in 'ole_methods': failed to GetTypeInfo (RuntimeError) It seems to me that your COM server does not provide type library information to access from WIN32OLE. > I've also tried: > session = WIN32OLE.new('Hyperion.HsvSession') > > This actually seems to work, in that the method appears to succeed, and > I'm then left with an object that has the right type library info > attached. However, I'm then getting a RuntimeError when I try to call > any method on the resulting session WIN32OLE object. > Any ideas how I might proceed? I have no good idea, but could you try that the following work or not? session = WIN32OLE.new('Hyperion.HsvSession') obj = session._invoke(0, [], []) p obj Regards, Masaki Suketa