Re: Array index



Good point! I didn't even read what the actual exception was...

"Jon Skeet [C# MVP]" <skeet@xxxxxxxxx> wrote in message
news:MPG.2059467170952baf98d951@xxxxxxxxxxxxxxxxxxxxxxx
Ben <your2slow@xxxxxxxxx> wrote:
That was exactly it! It always helps to have an extra set of eyes.
Thank you very much.

That doesn't explain why you were getting an
ArrayIndexOutOfBoundsException though. You should have been getting a
NullReferenceException.

--
Jon Skeet - <skeet@xxxxxxxxx>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too


.



Relevant Pages

  • Re: Current Exception
    ... > and set it yourself when the catch the exception (it HAS to be caught ... > Then in whatever code you are actually handling it, ... Jon Skeet - ... If replying to the group, please do not mail me too ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: what is the difference wetween Int32.parse and Convert.ToInt32
    ... an exception. ... You should pick based on the semantics you ... Jon Skeet - ... If replying to the group, please do not mail me too ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: StreamReader.close and StreamWriter.close
    ... an Exception occurs? ... Either put a try/catch within the using statement, ... Jon Skeet - ... If replying to the group, please do not mail me too ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Cross-thread operation not valid
    ... > I get this Exception when I try to update some labels/textbox's from a ... Jon Skeet - ... If replying to the group, please do not mail me too ... Prev by Date: ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Newbie Question on Error Handling
    ... That wouldn't stop the current thread of executing. ... The ng response was that the exception was being ... Jon Skeet - ... If replying to the group, please do not mail me too ...
    (microsoft.public.dotnet.languages.csharp)