Simple one...

I have a list-reference added to another list, and I delete the original
list, yet
the reference still exists?

What happens to list references when the list it is referencing is deleted?
Is there any way to update these references so garbage collection can do its
thing?

Here is an example... even though I set the value to be void, the sound
still
plays... still must have a reference to the member ~somewhere~

The Code:
-------------------------------
sound(1).setPlaylist([])

myReg=[:]
myReg[#one]=[:]
myReg[#one][#member] = member("EndMusic2Loop","audio")


sound(1).queue(myReg[#one])
put sound(1).getPlaylist()

myReg[#one][#member] = void
myReg.deleteProp(#one)
put myReg

put sound(1).getPlaylist()

sound(1).play()
-------------------------------

-------------------------------
Outputs:
-- [[#member: (member 2 of castLib 8)]]
-- [:]
-- [[#member: <Void>]]
-------------------------------


Spooky...
Any suggestions?

Thanks,
Mathew



[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL 
PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping 
with programming Lingo.  Thanks!]

Reply via email to