More thoughts on locals containing handles. --- In [email protected], "brucexs" <bswit...@...> wrote: > > - > Here is a related situation. What happens if a user does this: > > Function AKA > local x = create an object with com > global xAliased = x > quit > > Will local x be released, meaning xAliased is a dangling reference? As is, yes. Presumably not if I do this?
Function AKA local x = com.localcopy(com.create_object(...)) global xAliased = x quit and then what happens if I do this: Function AKA local x = com.localcopy(com.create_object(...)) . . . com.unload quit Your code needs to call a com function to release local x: but com no longer in memory? What happens?
