This project is closed and read-only.
Actions
Bug #2836
closedwin32ole + excel: crash when assigning large array
Bug #2836:
win32ole + excel: crash when assigning large array
Status:
Closed
Assignee:
ruby -v:
ruby 1.8.7 (2010-01-10 patchlevel 249) [i386-mswin32]
Description
=begin
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
=end
Actions