is vs debugger wrong? indexoutofrangeexception thrown code: f++


why an difference being thrown "f++" biased formula next ("indexoutofrangeexception unhandled user code"):



for (int f = 0; f < gnf; f++)  
{
fieldnames[g] = grid.fieldname(f);
}


the bug "fieldnames[g] = ..." biased code, algorithm should be:



for (int f = 0; f < gnf; f++)  
{
fieldnames[f] = grid.fieldname(f);
}


(this does crash.) nonetheless debugger arrangement difference "fieldnames[g]..." line wrong (top) formula runs.



i'm controlling threads during indicate i don't being those "debugging exceptions threaded way suicide" situations.



why debugger arrangement difference wrong place? optimizations something? anyone else debugger "wrong" before?



Comments

Popular posts from this blog

why does floated <input> control floated component slip over too distant right ie7, nonetheless firefox?

grails record upload problems

how i emanate permitted url asp.net mvc?