I tried to use a TADOQuery (delphi 5) object in a TThread. On the TADOQuery.Create, an exception was raised that 'CoInitialize' had not been called. So I simple called ole2.CoInitialize(nil), and without knowing what truly happens, everything seems to work. Even if I launch 50 threads and let them query an access database, all results seems to be allright.
- Is this ok, or just a dirty workaround?
- the delphi help states that bde access connection should not be used in threads, since the ADO library would not be thread safe. Is this still true, and so applicable to the new ADO components as well?
- Performance within the threads seems to be a little slow. Is this due to the simulanious reads of the access database, or are the ADO calls not handled in parallel?