# \#N/A bug segmentation

**URL:** <https://www.ruby-forum.com/t/n-a-bug-segmentation/79262>\
**Category:** Ruby\
**Created:** [December 13, 2006, 6:16pm UTC](https://www.ruby-forum.com/t/n-a-bug-segmentation/79262 "2006-12-13T18:16:19Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![wkc](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/3be4f8/32.png) [@wkc](https://www.ruby-forum.com/u/wkc)\
**Post date:** [December 13, 2006, 6:16pm UTC](https://www.ruby-forum.com/t/n-a-bug-segmentation/79262/1 "2006-12-13T18:16:19Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![wkc](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/3be4f8/32.png) [@wkc](https://www.ruby-forum.com/u/wkc)\
**Post date:** [December 13, 2006, 6:31pm UTC](https://www.ruby-forum.com/t/n-a-bug-segmentation/79262/2 "2006-12-13T18:31:02Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![wkc](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/3be4f8/32.png) [@wkc](https://www.ruby-forum.com/u/wkc)\
**Post date:** [December 13, 2006, 10:15pm UTC](https://www.ruby-forum.com/t/n-a-bug-segmentation/79262/3 "2006-12-13T22:15:43Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![wkc](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/3be4f8/32.png) [@wkc](https://www.ruby-forum.com/u/wkc)\
**Post date:** [December 18, 2006, 7:52pm UTC](https://www.ruby-forum.com/t/n-a-bug-segmentation/79262/4 "2006-12-18T19:52:10Z")

</div>

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/](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

---

<div class="post-metadata">

**Author:** ![wkc](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/3be4f8/32.png) [@wkc](https://www.ruby-forum.com/u/wkc)\
**Post date:** [December 30, 2006, 1:03am UTC](https://www.ruby-forum.com/t/n-a-bug-segmentation/79262/5 "2006-12-30T01:03:30Z")

</div>

> 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?

---

<div class="post-metadata">

**Author:** ![wkc](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/3be4f8/32.png) [@wkc](https://www.ruby-forum.com/u/wkc)\
**Post date:** [December 15, 2006, 1:29pm UTC](https://www.ruby-forum.com/t/n-a-bug-segmentation/79262/6 "2006-12-15T13:29:01Z")

</div>

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?
