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?