Calling CoInitialize and COUninitialize in the same thread?
Posted: Sun 05 Dec 2004 13:23
Hi!
I'm having some problems (Acesss Violations and so on) in destruction codes of my DLL. I Have an ISAPI Application that has a pool of connections shared between several user requests. I've read that I had to call CoInitialize at begining of each thread and CoUninitialize at the end. But, I cannot CoUnitilialize the driver at the end of each thread cause the connection is part of a pool and i of course would like to reuse it in a next user request. Is there any kind of solution to this problem?
Perhaps there is no relation between couninitialize and my connection? Can I Keep the connection after a counitilialize calling?
I'm already using the latest version of the driver (2.0.3)
I'm having some problems (Acesss Violations and so on) in destruction codes of my DLL. I Have an ISAPI Application that has a pool of connections shared between several user requests. I've read that I had to call CoInitialize at begining of each thread and CoUninitialize at the end. But, I cannot CoUnitilialize the driver at the end of each thread cause the connection is part of a pool and i of course would like to reuse it in a next user request. Is there any kind of solution to this problem?
Perhaps there is no relation between couninitialize and my connection? Can I Keep the connection after a counitilialize calling?
I'm already using the latest version of the driver (2.0.3)