473,396 Members | 2,076 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Microsoft .NET Framework error

Hi there,

I have a problem. I am running a program that used to work when
suddenly...it stop working.
I got this message:

"Index was outside the bounds of the array"

Is there anyone who knows how I can solve this problem?

Thanks
Sep 19 '05 #1
4 2677
Hi Andrea,

Have you made any changes at all to the program?
Does it now crash where previously it ran fine?
Where/when exactly does it crash, when you load the program?

The error is simple enough, something is reading from an array at an index outside the bounds of that array. Typically this can be a regular array or list in the code or collection from Controls like ListBox/ListView in the user interface.

It would help if you can provide as much detail as you can.
On Mon, 19 Sep 2005 09:01:03 +0200, Andrea <An****@discussions.microsoft.com> wrote:
Hi there,

I have a problem. I am running a program that used to work when
suddenly...it stop working.
I got this message:

"Index was outside the bounds of the array"

Is there anyone who knows how I can solve this problem?

Thanks


--
Happy coding!
Morten Wennevik [C# MVP]
Sep 19 '05 #2
DWS
Andrew,

You check the array.count before using the index.
Tip. Indexes usually start with zero and go to the array.count -1.

Good Luck
DWS

"Andrea" wrote:
Hi there,

I have a problem. I am running a program that used to work when
suddenly...it stop working.
I got this message:

"Index was outside the bounds of the array"

Is there anyone who knows how I can solve this problem?

Thanks

Sep 19 '05 #3
Hi,

Thanks for the reply.

Here some answers:
The error has appeared after I updated MS Windows - I haven't changed the
program at all as far as I know.

A more detailed explainations of the error is:

I'm getting a Microsoft .NET Framework error :

"Index was outside the bounds of the array"

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Mes sage& m)
at System.Windows.Forms.ContainerControl.WndProc(Mess age& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage (Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(M essage& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg,
IntPtr wparam, IntPtr lparam)

Does the error look like it comes from the VB interface ? Do I need to try
reinstalling any VB parts ?

Does this make any sense to you?

Thanks for help,

Andrea

"Morten Wennevik" wrote:
Hi Andrea,

Have you made any changes at all to the program?
Does it now crash where previously it ran fine?
Where/when exactly does it crash, when you load the program?

The error is simple enough, something is reading from an array at an index outside the bounds of that array. Typically this can be a regular array or list in the code or collection from Controls like ListBox/ListView in the user interface.

It would help if you can provide as much detail as you can.
On Mon, 19 Sep 2005 09:01:03 +0200, Andrea <An****@discussions.microsoft.com> wrote:
Hi there,

I have a problem. I am running a program that used to work when
suddenly...it stop working.
I got this message:

"Index was outside the bounds of the array"

Is there anyone who knows how I can solve this problem?

Thanks


--
Happy coding!
Morten Wennevik [C# MVP]

Sep 20 '05 #4
Well, it looks like the error happens inside the Load event.

If you upgraded to BizTalk Server 2004 SP1, see this page

http://support.microsoft.com/?scid=k...444&sid=global

If not, then I'm afraid I'm out of ideas as this was the only relevant topic I could find. If so, try posting a new thread with as much detail about the error as you can like Windows version, what kind of application, if you wrote it yourself/have access to the source code.

If you have access to the source code/wrote the application yourself, try disabling some controls. It may be related to a control that is databound or otherwise filled with information at startup, and for some reason or other it isn't ready to be used.

Good Luck!
--
Happy coding!
Morten Wennevik [C# MVP]
Sep 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Programatix | last post by:
Hi, I'm working on a project which includes WebServices and Windows Form application. The Windows Form application will call the WebServices to retrieve data from database. The data will be...
4
by: Chuck Farah | last post by:
I keep getting this error running a VB .NET web forms application. I exit visual studio kill the aspnet_wp.exe process and restart vs and works again. Any help would be appreciated. Just to...
1
by: Ivan | last post by:
Hi, I have moved an entire solution from .netframework 1.0 to 1.1; also I have migrated the solution to VS2003. After this I have added a new project (Web) to previous solution; I'm referencing...
1
by: Oney | last post by:
I use Microsoft Exception management block to publish exception to event log. but some error occured. Error is blow, how can I solve this problem ??? Configuration Error Description: An error...
1
by: KMart | last post by:
Hello, I have a ASP.NET/C# application that uses the IE Web Controls. Everything was working fine. Then, for some unknown reason, everything stopped working. Here's the error information: ...
1
by: Lorenc | last post by:
Recently I am getting this error randomly while working with visual studio ..NET 2003 on a C# project and browsing my application. Everything comes to normal after rebooting. Can someone help on...
0
by: Marco Viana | last post by:
Hi, I'm developing an ASP.NET application with Visual Studio .NET 2003 in a Win XP Professional, .NET Framework 1.1 and IIS 5.1 computer with all the lattest patches. When testing a page...
182
by: Jim Hubbard | last post by:
http://www.eweek.com/article2/0,1759,1774642,00.asp
3
by: Shadow Lynx | last post by:
At the bottom of the default Error page that appears when Unhandled Exceptions occur, what exactly is the difference between the "Microsoft ..Net Framework Version" and the "ASP.NET Version"? I...
2
by: js | last post by:
I got this error when I moved my application to a new Windows 2003 server. I installed and recompiled the 'Microsoft.Practices.EnterpriseLibrary - June 2005" then added these assemblies to the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.