Today I was receiving an System.IndexOutOfRange error when I was calling AcceptChanges() on a dataset. I finally tracked it down to be an issue with the data that I was inserting into a table within the DataSet. Here's what happened:
- Insert valid row into the dataset table and call AcceptChanges.
- Insert an invalid row (two double columns contained values that were NaN) and call AcceptChanges.
- Repeat step 2....
- Look at the System.IndexOutOfRange error.
That's an odd error and didn't help me look at the correct problem at all. As soon as I solved the NaN issue, everything worked great.
posted on Wednesday, August 25, 2004 11:52 AM