You have declared an array that can store 8 elements not 9.
this.posStatus = new int[8];
It means postStatus will contain 8 elements from index 0 to 7.
Related Posts:
- All possible array initialization syntaxes
- Adding values to a C# array
- Adding values to a C# array
- C# equivalent of C++ map
- How to convert byte array to string [duplicate]
- How to convert byte array to string
- Adding values to a C# array
- Adding values to a C# array
- Reading CSV file and storing values into an array
- Remove element of a regular array
- Merging two arrays in .NET
- C# syntax to initialize custom class/objects through constructor params in array?
- Checking if a string array contains a value, and if so, getting its position
- How to add a string to a string[] array? There’s no .Add function
- How to convert UTF-8 byte[] to string
- How do I concatenate two arrays in C#?
- Best way to “push” into C# array
- Convert an array to string
- Key Value Pair List
- How do I generate a random int number?
- An existing connection was forcibly closed by the remote host
- Unexplained crashes related to ntdll.dll
- I am getting Failed to load resource: net::ERR_BLOCKED_BY_CLIENT with Google chrome
- What is parsing?
- C# error: “An object reference is required for the non-static field, method, or property”
- Error : Could not load file or assembly or one of it’s dependencies
- Algorithms in O(n^2) vs O(n) [duplicate]
- The remote certificate is invalid according to the validation procedure [duplicate]
- The page was not displayed because the request entity is too large on IIS
- WCF vs ASP.NET Web API
- Compiler Error Message: The compiler failed with error code -2146232576
- What does mscorlib stand for?
- Validation failed for one or more entities. See ‘EntityValidationErrors’ property for more details
- A generic error occurred in GDI+, JPEG Image to MemoryStream
- “Could not find a part of the path” error message
- WebForms UnobtrusiveValidationMode requires a ScriptResourceMapping for jquery
- What does the %= operator do? [duplicate]
- What does vary:accept-encoding mean?
- what is this oleaut32.dll?
- Why not use Html.EditorForModel()
- Where can I find System.Web.Helpers, System.Web.WebPages, and System.Web.Razor?
- How to Use TextureBrush for painting an Image
- Can’t use System.Windows.Forms
- How to use the “Using” statement in ASP.net razor webpages?
- Where can I find the assembly System.Web.Extensions dll?
- Regex for numbers only
- There is no argument given that corresponds to the required formal parameter – .NET Error
- How do I remedy “The breakpoint will not currently be hit. No symbols have been loaded for this document.” warning?
- Is there an exponent operator in C#?
- How can I export data to an Excel file
- Could not establish trust relationship for SSL/TLS secure channel — SOAP
- How to convert an Stream into a byte[] in C#?
- Passing just a type as a parameter in C#
- Merge two (or more) lists into one, in C# .NET
- How to stop C# console applications from closing automatically? [duplicate]
- How to map with index in Ruby?
- Why should I use IHttpActionResult instead of HttpResponseMessage?
- Convert integer to binary in C#
- HTML.ActionLink method
- Thread-safe List
property - Styles.Render in MVC4
- Exception from HRESULT: 0x800A03EC Error
- num1 >= 0x80 – What is 0x80?
- How to get correct timestamp in C#
- There is already an open DataReader associated with this Command which must be closed first
- Unable to connect to any of the specified mysql hosts. C# MySQL
- String was not recognized as a valid DateTime ” format dd/MM/yyyy”
- Substring index and length must refer to a location within the string
- Difference between Method and Function?
- How to pass data (and references) between scenes in Unity
- Constructor of an abstract class in C#
- CS1617: Invalid option ‘6’ for /langversion; must be ISO-1, ISO-2, 3, 4, 5 or Default
- Catch multiple exceptions at once?
- How to delete a file after checking whether it exists
- c# Show Windows Form
- Equivalent of console.log in C#
- How to get the URL of the current page in C#
- C# Debug – cannot start debugging because the debug target is missing
- ‘namespace’ but is used like a ‘type’
- How to properly make a http web GET request
- Strip double quotes from a string in .NET
- Simulating Key Press C#
- No overload for method ” takes 1 argument
- Type Checking: typeof, GetType, or is?
- C# Macro definitions in Preprocessor
- Adding images to buttons from Imagelist on a toolstrip?
- Multiple cases in switch statement
- System.ArgumentNullException: Value cannot be null. Parameter name: source
- Is it possible to install a C# compiler without Visual Studio?
- Playing a MP3 file in a WinForm application
- The server tag is not well formed error
- How to solve Operator ‘!=’ cannot be applied to operands of type ‘T’ and ‘T’
- Best way to randomize an array with .NET
- Encrypt and decrypt a string in C#?
- Using .Select and .Where in a single LINQ statement
- How to resize an Image C#
- Unrecognized escape sequence for path string containing backslashes
- C# Dictionary get item by index
- A field initializer cannot reference the nonstatic field, method, or property
- How to set session timeout in web.config