Are components TkbmClientQuery,TkbmMWClientConnectionPool,TkbmClient threadsafe?

Home Forums kbmMW Are components TkbmClientQuery,TkbmMWClientConnectionPool,TkbmClient threadsafe?

Viewing 2 reply threads
  • Author
    Posts
    • #55805
      VadimMest
      Participant

      Hello

      I have application with TkbmMWClientQuery,TkbmMWClientConnectionPool,TkbmClient on datamodule. I create thread with TkbmMWClientQuery with properties ConnectionPool and StreamFormat  linked to components on datamodule. After this I catch error on main thread in TkbmMWCustomPooledDataSet.SetActive(Value:boolean). I run Server in Delphi debuger but don’t see error on serverside.
      How do I properly use  TkbmMWClientQuery in separated thread?

      Thanks
      Vadim Mescheryakov

       

       

    • #55807
      VadimMest
      Participant

      Hello

      I created new TkbmMWClientQuery,TkbmMWClientConnectionPool,TkbmClient, TkbmMWPooledSession objects, I obtaned a new token for a new client object and now it works. Is it right solution?

      Thanks
      Vadim Mescheryakov

       

    • #55837
      kimbomadsen
      Keymaster

      Hi,

      TkbmMWClientQuery and TkbmMWClient should be instantiated in each thread.
      TkbmMWClientConnectionPool and optionally TkbmMWPooledSession is often placed in a shared place and are thus threadsafe.

      /Kim

Viewing 2 reply threads
  • You must be logged in to reply to this topic.