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 almost 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 #1

Updated by nobu (Nobuyoshi Nakada) about 14 years ago

  • Category set to ext
  • Status changed from Open to Feedback

=begin
What do you mean by `crash'?

  • an exception occurred,
  • ruby interpreter segfaulted,
  • Excel aborted,
  • the blue-screen-of-death occurred, or
  • a HDD destroyed physically?

=end

Actions #2

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

=begin
Sorry, I should have been more verbose.

No exception occurs. The interpreter exits with exit code -107374181. Excel stays alive.

OS is Windows XP SP3. Excel version is 2003 SP3.

Please let me know if more information is needed.
=end

Actions #3

Updated by nobu (Nobuyoshi Nakada) about 14 years ago

  • Status changed from Feedback to Assigned
  • Assignee set to suke (Masaki Suketa)

=begin

=end

Actions #4

Updated by suke (Masaki Suketa) almost 14 years ago

=begin
I think this issue fixed on ruby_1_8 branch(revision 27459).
=end

Actions #5

Updated by shyouhei (Shyouhei Urabe) almost 14 years ago

  • Status changed from Assigned to Closed
  • % Done changed from 0 to 100

=begin
This issue was solved with changeset r28213.
Jochen, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.

=end

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0