Exception is thrown when multithreads write data of type DateTime

May 24, 2011 at 9:15 AM

Writing other type of data works fine ,such as string, int and double, except for type of DateTime. 

Do you have any clue?

Jun 3, 2011 at 9:37 PM
Edited Jun 3, 2011 at 9:37 PM

DataSet class is not thread-safe, so you should synchronize an access to the DataSet instance explicitly to guarantee non-reentrancy for DataSet methods.