如题

解决方案 »

  1.   

    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.
      

  2.   

    initialization
       CoInitialize;
      

  3.   

    在你的unit上加上:initialization
       coinitialize(nil);
    finalization
       counInitialize;就OK了