#N/A bug segmentation

I am using ruby with COM objects. On certain COM function calls the
output of: COMFunction(arg1,arg2)should produce #N/A, or nil presumably
in Ruby, however the following occurs:

[BUG] Segmentation fault
ruby 1.8.5
(2006-08-25) i386-mswin32]

Any ideas? Is this a ruby problem or an issue with the way WIN32OLE
handles certain objects?

Thanks

WKC CCC wrote:

I am using ruby with COM objects. On certain COM function calls the
output of: COMFunction(arg1,arg2)should produce #N/A, or nil presumably
in Ruby, however the following occurs:

[BUG] Segmentation fault
ruby 1.8.5
(2006-08-25) i386-mswin32]

Any ideas? Is this a ruby problem or an issue with the way WIN32OLE
handles certain objects?

It could be a bug in win32ole. Got a code sample?

Thanks,

Dan

WKC CCC schrieb:

Thanks

I cannot explain the details, cause i’m a tester and no programmer but
for WATIR which drives the Internet Explorer with win32ole it is
recommended to use Ruby 1.8.2. With 1.8.5 i too got segmentation
faults.

Udo

WKC CCC wrote:

I cant produce an exmaple here since it would require me to upload the
dll’s. It appears that Win32ole cannot handle arrays of this sort which
return (#N/A).
Any ideas?


Posted via http://www.ruby-forum.com/.

Watir includes a patched win32ole.so library that is compiled to work
with 1.8.2 only. This is the cause of your error.

The next release of 1.5 will not use this library unless 1.8.2 is
installed. (This patch is required for the modal dialog support, so
modal dialogs can only work with watir with 1.8.2 – unless you port
the patch to 1.8.5.)

Bret

The next release of 1.5 will not use this library unless 1.8.2 is
installed. (This patch is required for the modal dialog support, so
modal dialogs can only work with watir with 1.8.2 – unless you port
the patch to 1.8.5.)

How does one port the patch to 1.8.5?

I cant produce an exmaple here since it would require me to upload the
dll’s. It appears that Win32ole cannot handle arrays of this sort which
return (#N/A).
Any ideas?