References to instances
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Finn_MacCool
Posted On:   Monday, August 30, 2004 10:51 PM

I'm editing a class and noticed this line...


			
while (i < args.length)
{
new TibrvListener(Tibrv.defaultQueue(), this, transport, args[i], null);
}


Now I need to kill these TibrvListeners, but multiple are being created and it doesn't assign them to variables or anything. How can I get a reference to them so I can kill them?

Re: References to instances

Posted By:   Edward_Harned  
Posted On:   Tuesday, August 31, 2004 06:37 AM

You're in the wrong forum. You should be in the Java beginner forum.



Set up an array of TibrvListeners[] tl = new TibrvListeners[args.length]



In the while loop specify the array element for each new TibrvListeners.



    tl[i] = new  TibrvListeners etc.



Now you have access to each TibrvListeners object.

About | Sitemap | Contact