In the GetOrdinal Function of DataReader (version
0.20), the mFieldNames array is sometimes uninitialised.
I've solved this in my copy by placing the line
before the iteration through the array.
I tested this 4 times in a row without changing any
code, and only once did it manage to initialise this
property properly. I haven't been able to tied down
the problem, Data is returned once this issue has been
taken care of, so it's not because of an empty dataset.
Log in to post a comment.