Is your project a standalone windows application? If your project has some threads using COM/ADO/ActiveX (whatever name M$ called it), you need to CoInitialize and CoUninitialize within the threads (i.e. TThread.Execute method). If your project is a web application, I think you need to call CoInitialize and CoUninitialize within the dll. For IntraWeb application, set ComInitialization property to ciMultiThreaded for the server controller.
CoInitialize;
coinitialize(nil);
finalization
counInitialize;就OK了