--- In [email protected], "forxtra" <forx...@...> wrote:
> Thanks for explain. It's clear now. > > For scripting practice, if possible, I prefer to release the handles when I > no longer need them as mentioned in the XXXPluginReadme.rtf. > it would also work fine for me without generating orphaned handles: > ; ---------------------- > unicode.file_watchfolder(unicode.new(?#C:\#), "Win.Debug(,)") > ; ---------------------- That will have same effect as local uFolder = unicode.new(?#C:\#) unicode.file_watchfolder(uFolder, "Win.Debug(,)") You're an implicit local, which will be released (immediately after expression its in is evaluated. So when watchfolder comes back with a result, the handle passed to it as folder name will be old news and invalid.
