Bug #2836
closedwin32ole + excel: crash when assigning large array
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
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
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
Updated by nobu (Nobuyoshi Nakada) about 14 years ago
- Status changed from Feedback to Assigned
- Assignee set to suke (Masaki Suketa)
=begin
=end
Updated by suke (Masaki Suketa) about 14 years ago
=begin
I think this issue fixed on ruby_1_8 branch(revision 27459).
=end
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