Delphi - Is TClientDataset Thread Safe?

后端 未结 3 610
情歌与酒
情歌与酒 2021-01-02 05:00

I have a TClientDataset that is managed in Thread 1.

In a different thread I have a cloned Image of the TClientDataset.

Will I run into threading problems?

3条回答
  •  一生所求
    2021-01-02 05:24

    In a word: No.

    All of the VCL should be considered "thread unsafe". Any calls to visual components in a TThread should be made in a Synchronize event.

    Any VCL/RTL class should be created and destroyed entirely within a TThread.

提交回复
热议问题