From: Lars Christensen Date: 2009-08-05T20:51:09+09:00 Subject: Re: It always display error message when I run the exe which is created by ocra. On Sun, Jun 14, 2009 at 5:43 AM, Wesley Chen wrote: > Hi, All, > I have simplified my question. > > The error turns up when: > > *begin >    require 'win32ole' >    require 'watir' > rescue >    puts $@ >    puts $! > ensure >    system("pause") > end* > If I remove the > *require 'watir'* > in the code > Anything goes as expected. > > Any suggestion would be quite appreciated. Watir seem to include a custom version of win32ole. The way this version is added to the $LOADED_FEATURES global variable seem to make it indistinguisable from the one provided with Ruby. Hence, OCRA doesn't know that there are actually two. Try load Watir's win32ole explictly: require 'watir/win32ole/win32ole' BR, Lars