Toad World® Forums

Index out of array range


#1

Hi,

I think I’ve just found a bug in 5.0.0.250. And a pretty strange one.

Reproduction steps:

  1. Open a fresh Toad instance.
  2. Open a script that is long enough to scroll down, or write something in
    editor that is longer than one page (depends on your screen resolution of
    course).
  3. Go to the very end of the script.
  4. ctrl+f to open Find/Replace dialog. Type a random search text that
    doesn’t exist in editor (my preference is asdfasdraasd :slight_smile: ) and type random a
    replace text. It works (not found).
  5. Now scroll up a little bit. Do step 4. again. An Error dialog says (probably
    because My Windows is German): "Der Index war auÃerhalb des Arraybereichs. "
    which means “Index was out of the array range.”
  6. Close the dialog, and try to scroll up and down. The editor disappears, a red
    cross appears instead of editor. Now comes a stack trace:

System.IndexOutOfRa ngeException
Der Index war auÃerhalb des Arraybereichs.
Stack Trace:
bei a5.b(Int32 A_0)
bei g.a(Int32 A_0)
bei ActiproSoftware. SyntaxEditor. DisplayLineColle ction.e(Int32 A_0)
bei ActiproSoftware. SyntaxEditor. EditorView. OffsetToPosition (Int32 offset)
bei ActiproSoftware. SyntaxEditor. EditorView. GetCharacterBoun ds(Int32 offset)

bei ActiproSoftware. SyntaxEditor. EditorView. OnMouseHover( MouseEventArgs e)
bei ActiproSoftware. WinUICore. UIElement. ActiproSoftware. WinUICore.
IInputElement. RaiseMouseHoverE vent(MouseEventA rgs e)
bei ActiproSoftware. WinUICore. UIControl. OnMouseHover( EventArgs e)
bei System.Windows. Forms.Control. WmMouseHover( Message& m)
bei System.Windows. Forms.Control. WndProc(Message& m)
bei System.Windows. Forms.Scrollable Control.WndProc( Message& m)
bei ActiproSoftware. SyntaxEditor. SyntaxEditor. WndProc(Message& m)
bei System.Windows. Forms.Control. ControlNativeWin dow.OnMessage( Message& m)
bei System.Windows. Forms.Control. ControlNativeWin dow.WndProc( Message& m)
bei System.Windows. Forms.NativeWind ow.Callback( IntPtr hWnd, Int32 msg, IntPtr
wparam, IntPtr lparam)

HTH
Ercan


#2

I tried all your steps with the latest beta but so far I cannot reproduce the
error. I’ll keep trying but if you can think of something else that may help
reproduce it let me know.

Thanks,

David


#3

David, I was clearly able to reproduce the problem as has been reported.

Good Catch Ercan.

See Graphic below…

Index was outside the bounds of the array. Then

Hank Freeman

Senior Systems, Database/Data Warehouse Architect

hfreeman@msn. com

678.414.0090 my cell Primary
image002.jpeg


#4

David, I was clearly able to reproduce the problem as has been reported.

Good Catch Ercan.

See Graphic below…

Index was outside the bounds of the array. Then

Hank Freeman

Senior Systems, Database/Data Warehouse Architect

hfreeman@msn. com

678.414.0090 my cell Primary
image001.gif


#5

David, I was clearly able to reproduce the problem as has been reported.

Good Catch Ercan.

See Graphic below…

Index was outside the bounds of the array. Then

Hank Freeman

Senior Systems, Database/Data Warehouse Architect

hfreeman@msn. com

678.414.0090 my cell Primary


#6

[ Attachment(s) from Hank Freeman included below]

David, this issue is particularly difficult to get rid of because it keep
failing …. You have pretty much shutdown all the Support bundles which are
opened ( 5 total) … I then shutdown Toad-ss to make sure I had a clean
version.

I created a support bundle and a text file of same for your discover.

Hank Freeman

Senior Systems, Database/Data Warehouse Architect

hfreeman@msn. com

678.414.0090 my cell Primary
image001.gif


#7

[ Attachment(s) from Hank Freeman included below]

David, this issue is particularly difficult to get rid of because it keep
failing …. You have pretty much shutdown all the Support bundles which are
opened ( 5 total) … I then shutdown Toad-ss to make sure I had a clean
version.

I created a support bundle and a text file of same for your discover.

Hank Freeman

Senior Systems, Database/Data Warehouse Architect

hfreeman@msn. com

678.414.0090 my cell Primary
image002.jpeg


#8

[ Attachment(s) from Hank Freeman included below]

David, this issue is particularly difficult to get rid of because it keep
failing …. You have pretty much shutdown all the Support bundles which are
opened ( 5 total) … I then shutdown Toad-ss to make sure I had a clean
version.

I created a support bundle and a text file of same for your discover.

Hank Freeman

Senior Systems, Database/Data Warehouse Architect

hfreeman@msn. com

678.414.0090 my cell Primary
image002.jpeg


#9

[ Attachment(s) from Hank Freeman included below]

David, this issue is particularly difficult to get rid of because it keep
failing …. You have pretty much shutdown all the Support bundles which are
opened ( 5 total) … I then shutdown Toad-ss to make sure I had a clean
version.

I created a support bundle and a text file of same for your discover.

Hank Freeman

Senior Systems, Database/Data Warehouse Architect

hfreeman@msn. com

678.414.0090 my cell Primary


#10

Hi all i get this error message with 5.0
Index was out of range. Must be non-negative and less that the size of the colection
Thishappens when i am importing a csv file using the import wizard. The table that I am importing into has 105 field names and the file which iscontinually changing has 120 columns. When I click on the match by namebutton while importing I get the above message, any one else seeing this and is there a fix. I reverted back to my copy of 4.5 and all worked fine on the import

Message was edited by: bradzelazko

Message was edited by: bradzelazko


#11

Hi Brad,

Your situation is different as the issue is with import wizard instead of
editor. Is that possible to give us your table DDL and sample csv file to
reproduce it locally?

Thanks,

YaKe


#12

Hi Yake,

Thanks for your reply, please see attached table ddl and also a csv file with dummy data
Testing.csv (42.7 KB)


#13

Hi Yake,

Thanks for your reply, please see attached table ddl and also a csv file with dummy data
table ddl.txt (1.69 KB)


#14

Hi Brad,

Thank you for all detailed information. I was able to reproduce the issue and
created CR79177. We will fix it in next release.

Thanks,

YaKe


#15

Can you tell me when the next release will be Yake?


#16

Brad, please consider reposting your email below on the Toad_ss@yahoogroups.com
, as I have been instructed by Quest that this board is not being watched as
much since the product in not in a Beta Cycle.

Hank Freeman

Senior Systems, Database/Data Warehouse Architect

hfreeman@msn.com

678.414.0090 my cell Primary
image001.gif


#17

Brad, please consider reposting your email below on the Toad_ss@yahoogroups.com
, as I have been instructed by Quest that this board is not being watched as
much since the product in not in a Beta Cycle.

Hank Freeman

Senior Systems, Database/Data Warehouse Architect

hfreeman@msn.com

678.414.0090 my cell Primary
image002.jpeg


#18

Hi,
We have no final dates, but we planning next release in Q2 2011.