COM Beginner
-
The problem is related to ATL Wizard in VC 6.0. When we add some interface, we have to specify its threaded model. There are four threaded models are given. 1. Single 2. Apartment 3. Both 4. Free My COM take data as input and passes it to corresponding server, and I m using this COM in ASP. I have confusion of which threaded model should I have to use so that the COM can fullfill multiple requests at the same time. Thanks!
-
The problem is related to ATL Wizard in VC 6.0. When we add some interface, we have to specify its threaded model. There are four threaded models are given. 1. Single 2. Apartment 3. Both 4. Free My COM take data as input and passes it to corresponding server, and I m using this COM in ASP. I have confusion of which threaded model should I have to use so that the COM can fullfill multiple requests at the same time. Thanks!
Hi! You have a choice of using Both or Apartment depending on the object's scope on the ASP and the way you are going to use it. There is a very good article by Don Box about the threading models (http://www.develop.com/dbox/aspapt.asp), you also can have a look at the Microsoft's articles (http://msdn.microsoft.com/workshop/server/asp/server01242000.asp). Regards, Alex Gorev, Dundas Software.