I am currently using SDAC in a service application using Asta for connectivity. I am using a persistent threading model so for each connection a new thread with the necessary datamodule with the SDAC TMSConnection and queries.
When I try to disconnect and then reconnect the TMSConnection I get the following error.
'Object was open..'
'CoInitialize has not been called.'
I have been told that I need to use CoInitialize and CoUnitialize. I have no clue how to do this with SDAC. Also I have no idea what units I need to include in my uses clause to be able to use the above methods. Any help is very appreciated.
Bill
How to use CoInitialize
What Unit?
What unit do I need for CoInitialize?