PC Review


Reply
Thread Tools Rate Thread

Error: "Index was outside the bounds of the array"

 
 
Jason Roozee
Guest
Posts: n/a
 
      24th Mar 2004
I get the error "Index was outside the bounds of the array" on the line
"input = fileDataBinaryReader.Read". Why???


Dim fileDataStream As FileStream = New FileStream(ReportFile.Text,
FileMode.Open, FileAccess.Read, FileShare.None)
Dim fileDataBinaryReader As BinaryReader = New BinaryReader(fileDataStream)
Dim input As Integer = fileDataBinaryReader.Read
Do Until input = -1
FileData.Append(ChrW(input))
input = fileDataBinaryReader.Read
Loop


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Outlook 2007 - "Array index out of bounds" error creating shortcut =?Utf-8?B?RGViYmkgQ2hhbWJlcnM=?= Microsoft Outlook Discussion 7 10th May 2011 05:20 PM
"Array index out of bounds" error when deleting Shortcut Group =?Utf-8?B?QnJldHQ=?= Microsoft Outlook Discussion 1 27th Feb 2007 05:57 PM
"Array index out of bounds" error when creating shortcut to .oft =?Utf-8?B?QnJldHQ=?= Microsoft Outlook Discussion 0 27th Feb 2007 05:45 PM
Error: "Index was outside the bounds of the array" when binding the datatable with datagrid Gerry Viator Microsoft ADO .NET 1 11th Jun 2004 07:04 PM
Datagri "Index was outside the bounds of the array datagrid" error Trapulo Microsoft VB .NET 0 13th Jan 2004 11:43 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:14 PM.