Ugh... [modified]
-
for (int i = 0; i < keywords.Length; i++)
{
// keywords[i] index out of range exception?
}Thats right, index out of range exception... No idea why, I put a Linq query in there and bam... My head hurts... -- modified at 22:32 Sunday 13th May, 2007 Its not a question, its just the easiest way to express my mental state after trying to "correct" this "bug".
Matt Newman
-
for (int i = 0; i < keywords.Length; i++)
{
// keywords[i] index out of range exception?
}Thats right, index out of range exception... No idea why, I put a Linq query in there and bam... My head hurts... -- modified at 22:32 Sunday 13th May, 2007 Its not a question, its just the easiest way to express my mental state after trying to "correct" this "bug".
Matt Newman
Yikes! I caught myself starting to answer this and remembered where we are. Did you mean to post this in the Lounge?
-
for (int i = 0; i < keywords.Length; i++)
{
// keywords[i] index out of range exception?
}Thats right, index out of range exception... No idea why, I put a Linq query in there and bam... My head hurts... -- modified at 22:32 Sunday 13th May, 2007 Its not a question, its just the easiest way to express my mental state after trying to "correct" this "bug".
Matt Newman
We have coding horrors message board. pls put this post there. Don't post it in Longue.
Regards, Satips.
-
for (int i = 0; i < keywords.Length; i++)
{
// keywords[i] index out of range exception?
}Thats right, index out of range exception... No idea why, I put a Linq query in there and bam... My head hurts... -- modified at 22:32 Sunday 13th May, 2007 Its not a question, its just the easiest way to express my mental state after trying to "correct" this "bug".
Matt Newman
"after"? You're done? I'm curious to know what the cause was.
-
for (int i = 0; i < keywords.Length; i++)
{
// keywords[i] index out of range exception?
}Thats right, index out of range exception... No idea why, I put a Linq query in there and bam... My head hurts... -- modified at 22:32 Sunday 13th May, 2007 Its not a question, its just the easiest way to express my mental state after trying to "correct" this "bug".
Matt Newman
Matt Newman wrote:
Its not a question, its just the easiest way to express my mental state after trying to "correct" this "bug".
Ah, ok. I've had a few of those in my time. :doh:
-
"after"? You're done? I'm curious to know what the cause was.
'keywords' is obviously not zero based.
-
'keywords' is obviously not zero based.
Paul Brower wrote:
'keywords' is obviously not zero based.
Oh it is, its just a string array. I manually set the upper limit to two (happened to be the case I was testing) and it still ignorned the upper limit.
Matt Newman
-
Paul Brower wrote:
'keywords' is obviously not zero based.
Oh it is, its just a string array. I manually set the upper limit to two (happened to be the case I was testing) and it still ignorned the upper limit.
Matt Newman
Have you tried something like the following? I'm curious if that works. Also (stupid question), but is keywords populated? for (int i = keywords.GetLowerBound(0); i <= keywords.GetUpperBound(0); i ++) { }
-
Have you tried something like the following? I'm curious if that works. Also (stupid question), but is keywords populated? for (int i = keywords.GetLowerBound(0); i <= keywords.GetUpperBound(0); i ++) { }
I just remembered I should not even be responding to this post in the Lounge. :omg:
-
"after"? You're done? I'm curious to know what the cause was.
PIEBALDconsult wrote:
I'm curious to know what the cause was.
Me too, I just changed the block of code to not care :)
Matt Newman
-
Have you tried something like the following? I'm curious if that works. Also (stupid question), but is keywords populated? for (int i = keywords.GetLowerBound(0); i <= keywords.GetUpperBound(0); i ++) { }
Yep, it worked if I pulled the linq code within it out. Just when it was in there it would fail.
Matt Newman