From: Allen Mitchell Date: 2003-08-13T10:11:52+09:00 Subject: Re: BUG in Win32API By the way, I confirmed the behavior on 1.6.8 aqnd 1.8.0 -----Original Message----- From: Allen Mitchell [mailto:ajm@nb.sympatico.ca] Sent: August 12, 2003 10:04 PM To: ruby-talk ML Subject: BUG in Win32API Using the following code segment.... ----------------- require 'Win32API' $shellExecute = Win32API.new( "shell32", "ShellExecute", ['L','P','P','P','P','L'], 'L') objs = Hash.new(0) ObjectSpace.each_object { |o| objs[o.class] += 1 } objs.sort{|x,y| y[1] <=> x[1]}.each { |k,v| p "#{k}=#{v}" } ----------------- I get a bug segmentation fault on the ObjectSpace.new line. Comment out the shellexecute line and it runs normally. I looked at the win32api code and noted that there was no call to rb_define_alloc_func Is this required ( I compared it to win32ole )? I couldn't find documentation on rb_define_alloc_func in readme.ext Anyone?