PDA

Click to See Complete Forum and Search --> : MTS object creation


msdnexpert
Apr 28th, 2001, 04:19 AM
Dear all,
I am trying to instantiate an ActiveX DLL in the class initialize event of another ActiveX DLL. In this case my DLL's don't work in MTS. They just keep on rotating and the ASP page then times out. As soon as I comment out the portion in Class initialize the dll's work. However the component I am instantiating in the class initialize event is an object that I require throughout the class and I cannot keep on creating an new instance of it in each and every method of my class. Is there any alternative to initializing my component in class initialize? This problem occurs only when I use my components in MTS. Without MTS they work fine.

msdnexpert
Apr 29th, 2001, 06:41 AM
Thank you Andre.

msdnexpert
Apr 30th, 2001, 12:02 AM
Is connection pooling possible in apartment threaded components?

André
Apr 30th, 2001, 02:32 AM
Connection pooling is not a problem, on the contrary!!!

What you cannot do with VB yet is object pooling.

André

msdnexpert
Apr 30th, 2001, 08:34 AM
Ooops I meant object pooling. Well that means I will have to make my components in VC++.