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

list macos calm editors formula editors

how i practical urls indicate .aspx pages asp.net deployed an iis? (preferably but iis)

jaxb - xjc - reworking generated typesafe enum category members