Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


MTS Component instance not getting destroyed.

MTS Component instance not getting destroyed.

MTS Component instance not getting destroyed.

   I have created a component(dll) in VB6.0 for my application and the component is refering to ADO objects. I created a package in MTS and added this component. When this component is accessed by my client application I find the components icon rotating in MTS explorer. Thats fine..
My problem is, even after i stop the client application i find the component icon rotating in MTS explorer, which means( i suppose) that the instance of the component is still not destroyed. What should i do to avoid this. Please help.

RE: MTS Component instance not getting destroyed.


The thing with MTS is that is keeps an instance of the object alive if anyoneelse should need it. There is a place in the MTS that defines the time that an instance shall stay alive without being used before it gets destroyed!
In the properties of the package in which the component is installed choose Advanced! Set the "Shut down after being idle " to 0 minutes! I suppose this should do the trick!!

Why do you want it to be destroyed at once?? Its on of the main thing, as connection pooling, of the MTS!!

RE: MTS Component instance not getting destroyed.


Unfortuniately I have to disagree with Nikolay: the object you created still exists indeed (Object Pooling is NOT, I repeat NOT implemented in MTS v2.0!!!!!! (you can find this in the helpfile of MTS v2.0 SP1)

I think the problem you have is that not all objects created in the component are not cleanly 'destroyed'. You have to close them all: Set myADOObject = Nothing, etc. If you cleanly destroy all objects, the dll will stopp turning (believe me: placing a dll in MTS is easy: making it work as you want (only initialize objects when you need them, and destroy them when not needed anymore) is the hardest task)

A tip: install MTS and VB on the same NT machine. Install the VB dll into MTS and debug your project from within VB (create another 'dummy' project inside the dll project with forms and a reference to your dll): now you can see if all objects are cleanly destroyed and if your component will be closed in MTS.

Regards and Good luck,

RE: MTS Component instance not getting destroyed.

    Thanku Nikolaj & Kees. I tried out the suggestions given by kees and found that it was working. once again thanku.


RE: MTS Component instance not getting destroyed.

Hi Again!

Im sorry If i misinformed you fourguys!! Obivously the Object Pooling feature is not a part of the MTS 2.0 Release!


Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close