Hello, Thank you for your answer.
Yes, right, we do that.
In our, an application has both sides which are node and node-server. A node has own thread and a node-server uses a TSpakleTimer on a TDataModule of the main thread.
When I removed the Pooled setting on the node-server side and changed the ForeignKey set False on both nodes then the error does not occur anymore.
Could you give any advice about the following problems, please?
Q1) Can I know the time when finished the execution of Route and BatchLoad? Or can I check it? I don't know how to wait for the finish that.
Q2) I tried the followings but it failed. I was set the flag between the beginning and end of the Route and BatchLoad then checked it. But, I think it does not work, because when the Foreignkey set True, the same error occurred. Can I fix it? or am I missing something?
Q3) If the Foreignkey set False, the ObjectManager can be do handled it and safe the relations?