--- In [email protected], "entropyreduction" 
<alancampbelllists+ya...@...> wrote:
>
> This works, sort of:
> 
> for each objFile  in objFolder.Files
>   win.debug("    " ++ objFile.Name)
> ; necessary to release objects 
>   objFile.release
> endfor
 
> Problem at the moment is that com.release_all and com.unload
> freeze immedately after above loop.  They work okay after a short 
> delay.  I'll do some more debugging next week.

When there was no handle to return (i.e. when callback function returns 0 or an 
error code, I wasn't clearing the variable meant to hold
a valid handle ("objFile" in example above), so when callback terminated 
because nothing more to enumerate, variable still had
a handle in.  Seems to have fixed stall on unload (though I'll have to go back 
and test on home machine later in week).  Make any sense?



Reply via email to