Multi-thread error in the MIDAS client

xiaoxiao2021-03-06  75

The MIDAS client uses multi-threaded error to see someone is asking this question, so it is posted, I have encountered the problem before, and I have only found a solution. -------------------------------------------------- ------------ Today, I met a question. ClientDataSet created in a thread is always dead when Open, nor does it throw any exceptions. I know that Midas is not a thread safe, and only CLIENTDATASET and its RemoteServer are created in the thread. I can't think of this. Can't use it in the thread, you can't have trouble, hehe! -------------------------------------------------- ------------ Multi-level database system, the client cannot take the control of the remote data such as Table, Query, ClientDataSet's Active set to True or false or open ... reason is SocketConnect connection components,

Workaround: Automatically create a socket connection component in the thread, and then refer to the new Socket connection component (preferably in the subclock). Release it when thread results.

转载请注明原文地址:https://www.9cbs.com/read-94012.html

New Post(0)