Bug #2836: win32ole + excel: crash when assigning large array
http://redmine.ruby-lang.org/issues/show/2836

Author: Jochen Immendörfer
Status: Open, Priority: Normal
ruby -v: ruby 1.8.7 (2010-01-10 patchlevel 249) [i386-mswin32]

The following code examples crashes with ruby 1.8.7 (2010-01-10 patchlevel 249) [i386-mswin32], works with ruby 1.9.1p378 (2010-01-10 revision 26273) [i386-mswin32]:

  require 'win32ole'
  
  x=WIN32OLE.new 'Excel.Application'
  x.visible = true
  x.workbooks.add
  
  l = (1..10).to_a
  ar = [l]*54447
  
  # here it crashes:
  x.range(x.cells(1,1),x.cells(ar.length,l.length)).value = ar


----------------------------------------
http://redmine.ruby-lang.org