Home > Back-end >  Datasnap problem of understanding the object
Datasnap problem of understanding the object

Time:09-27

Want to ask next datasnap, each to create a connection thread, will create the corresponding methods in the TServerMethods object, could you tell me the remote object is created in each thread is created in the main thread, that is to say, these objects are belong to the individual threads, or belong to the main thread, understanding the blurred!

CodePudding user response:

Object belongs to individual threads,
Without a connection, create a thread is an object,
Whether the main thread or the child thread, objects are independent,

CodePudding user response:

reference 1st floor ksrsoft response:
object belongs to individual threads,
Without a connection, create a thread is an object,
Whether the main thread or the child thread, objects are independent,


The remote object also belong to the individual threads? TServerMethods instantiated object

CodePudding user response:

Yes

CodePudding user response:

DataSnap it for each connection, create a thread, and create the corresponding entity object, such as TMethods, database connection is independent and the corresponding methods are independent,
  • Related