In Delphi, is TDataSet thread safe?

前端 未结 6 1365
没有蜡笔的小新
没有蜡笔的小新 2021-01-02 02:30

I\'d like to be able to open a TDataSet asynchronously in its own thread so that the main VCL thread can continue until that\'s done, and then have the main VCL thread read

6条回答
  •  心在旅途
    2021-01-02 02:59

    Most TDatasets are not thread safe. One that I know is thread safe is kbmMemtable. It also has the ability to clone a dataset so that the problem of moving the record pointer (as explained by Jim McKeeth) does occur. They're one of the best datasets you can get (bought or free).

提交回复
热议问题