Hi,
If you get troubles using SQLCA in a shared object (a thread), please don't blame Powerbuilder.
Moreover SQLCA is not simply a global variable but it handles a DB connection.
My rule in threading is
Start the thread -Get the DB connection - Do the Job - Disconnect- Dispose the objects,
and then you are safe.
Because the DB connections may be handled by a Connection pool of the main thread.
Regards.
Abdallah.