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.
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.