<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>lyu302</title>
    <link>https://ruby-china.org/lyu302</link>
    <description></description>
    <language>en-us</language>
    <item>
      <title>ruby 调用外部 dll 异常</title>
      <description>&lt;h3 id="通过Win32API调用系统内部dll(如:Kernel等)没有任何问题，但调用外部dll时异常，大概信息如下:"&gt;通过 Win32API 调用系统内部 dll(如:Kernel 等) 没有任何问题，但调用外部 dll 时异常，大概信息如下：&lt;/h3&gt;
&lt;p&gt;&lt;code&gt;Win32API.new("test.dll", "GetSum", ["i","i"], "i").call(1,2)&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;(eval):3: [BUG] Segmentation fault
ruby 1.9.3p194 (2012-04-20) [i386-mingw32]&lt;/p&gt;

&lt;p&gt;[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: &lt;a href="http://www.ruby-lang.org/bugreport.html" rel="nofollow" target="_blank"&gt;http://www.ruby-lang.org/bugreport.html&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This application has requested the Runtime to terminate it in an unusual way.&lt;/p&gt;

&lt;p&gt;具体信息见&lt;a href="https://gist.github.com/aogail/3492796/raw/e992526c0f9e093b79a4085b9c5f37c0b00cdd07/ruby" rel="nofollow" target="_blank"&gt;https://gist.github.com/aogail/3492796/raw/e992526c0f9e093b79a4085b9c5f37c0b00cdd07/ruby&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;google 发现些类似的问题，有说版本问题，也有说 ruby 代码问题。可是在 1.8.7、1.9.3、2.0 上都是一样的错误，代码也曾按照网上的方式修改过，就是没有解决方法，求解！&lt;/strong&gt;&lt;/p&gt;</description>
      <author>lyu302</author>
      <pubDate>Thu, 06 Jun 2013 10:10:00 +0800</pubDate>
      <link>https://ruby-china.org/topics/11530</link>
      <guid>https://ruby-china.org/topics/11530</guid>
    </item>
  </channel>
</rss>
