Atozed Forums
ADOConnection and CoInitialize - Printable Version

+- Atozed Forums (https://www.atozed.com/forums)
+-- Forum: Atozed Software Products (https://www.atozed.com/forums/forum-1.html)
+--- Forum: IntraWeb (https://www.atozed.com/forums/forum-3.html)
+---- Forum: English (https://www.atozed.com/forums/forum-16.html)
+----- Forum: IntraWeb General Discussion (https://www.atozed.com/forums/forum-4.html)
+----- Thread: ADOConnection and CoInitialize (/thread-2064.html)



ADOConnection and CoInitialize - DL4NSC - 10-17-2020

Hello everybody

I'm using C ++ Builder 10.4.1 and IntraWeb 15.2.18

In my first test with IntraWeb last week I used the ADOConnection; ADOTable, DataSource and IntraWeb's DBGrid are used.
I was able to access the data of Access data.

For this I didn't have to program a single line of program code, I just had to adjust the connection string in ADOConnection.

Unfortunately, I had to reinstall the PC. Angry 
After the installation I load the program and make new. (the same)
Now I get the error: CoInitialize was not called.

That must have happened automatically beforehand. What do I have to do, to make this happen again automatically.

Thank you


RE: ADOConnection and CoInitialize - DanBarclay - 10-17-2020

In your ServerController properties set COMInitialization to ciMultiThreaded, then IW will take care of it for you.

(note: done differently if you deploy on late versions of IIS. See: https://www.atozed.com/forums/thread-2049.html?highlight=COMInitialization )

Dan


RE: ADOConnection and CoInitialize - DL4NSC - 10-18-2020

Dear Dan
Thank you very much.....
It`s running. Smile