Project

General

Profile

Actions

Bug #2836

closed

win32ole + excel: crash when assigning large array

Added by jochen (Jochen Immendörfer) about 14 years ago. Updated about 13 years ago.

Status:
Closed
ruby -v:
ruby 1.8.7 (2010-01-10 patchlevel 249) [i386-mswin32]
[ruby-core:28446]

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

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0