SDAC help for MSConnection.Connect says :
I have 2 pcs. of MSConnection put on the main form statically, 1 another created and freed runtime in the main thread, and 5 more created in 5 other threads that can quasi randomly exist or not during normal operation."Note, if you would like to use SDAC in service, console or just at a separate thread, you need to call CoInitialize for each thread. Also remember to call CoUnInitialize at the end of a thread."
Today I noticed that neither of the 3 MsConnections in the main thread calls CoInitialize before connecting.
Should I leave it this way ?
Or call it once at program startup in the main thread ?
Or call it once before connecting each instance of MSConnection ?
Thanks, Peter