Subj : Re: Queues vs. Sockets To : X V Lxxix From : Digital Man Date : Thu Jun 19 2008 11:12 am Re: Re: Queues vs. Sockets By: X V Lxxix to X V Lxxix on Thu Jun 19 2008 08:30 am > Using the following code, I was able to duplicate my previous results.. > Once the queues are stuck, they're stuck there until you restart the bbs, I > think. > > print("before:"); > print(list_named_queues()); > print("-"); > > q=new Queue("test" + bbs.node_num); > q.write("testing"); > console.pause(); > > print("after:"); > print(list_named_queues()); > print("-"); Try declaring 'q' as a local variable: var q=new Queue("test" + bbs.node_num); And/Or specifically deleting the Queue instance at the end of the script: delete q; Both (either one) of these fixes forces the Queue destructor to be called at the end of the script which is responsible for detaching the node thread from the Queue and removing the Queue from the named-queue list. digital man (xbox-live: digitlman) Snapple "Real Fact" #76: The average person spends 2 years on the phone in his/her lifetime. Norco, CA WX: 64.2øF, 67% humidity, 0 mph SE wind, 0.00 inches rain/24hrs .