Do I need to call CoInitializeEx() when running a FireDAC based interface to MS Access database tables (*.mdb) using the ODBC driver with the interface running in a separate thread? If so, should I call it with the parameter set to COINIT_APARTMENTTHREADED or set to COINIT_MULTITHREADED? Or is this all handled by the FireDAC library?
Application is running on Windows 7 32 bit. Compiler is C++ Seattle 10 Subscription Update 1.
Symptom is that whilst posting a large number of new records (300,000) to a table it runs ok for a long time (an hour) and then I get one or two records that fail to insert (with the TFDConnecton OnError reporting that the record was locked by the "username" - where the "username" is the username used to log in to the database at the time the connection is made. After the record has failed it continues posting records successfully. It's a different record that fails each time I run the test.