Attached is a code snippet. I used it and complied and it worked. An hour later i went through that bit of the programe again and i got an out of boubds error on the arry.
Can any one explain this for me. Why it work once - then not again?
Gremlins
5 Answers
Know the answer? Post it. Somebody with the same question will find it here.

VulpesRank #55 · 29.2K reputationPosted Apr 6, 2011, 9:51 AM EDT
Richard Brennan89 reputationPosted Apr 6, 2011, 12:32 PM EDT
Now that is a real gremlin - it should not have happened - then it went away. Humm, great.
Richard Brennan89 reputationPosted Apr 6, 2011, 12:50 PM EDT
Sam HobbsRank #107 · 20.5K reputationPosted Apr 6, 2011, 4:08 PM EDT
My guess is that the file is being used elsewhere in the program, or by anohter program. That could affect the snippet in a way that can't be seen by staring at the snippet. It could be seen by checking for errors.
Richard Brennan89 reputationPosted Apr 14, 2011, 1:53 AM EDT