>  
> From what I can see, handles going into and overwritten in foreach variable 
> are behaving as they should.  It's the handle to the collection that's got 
> annoyed.
  
> 
> for each objFile  in hCollectionFiles
> ; line below returns 2
>   win.debug(" hCollectionFiles refs: " ++ hCollectionFiles._refs__ )
> endfor
> ;line below returns 2
> win.debug(" hCollectionFiles refs: " ++ hCollectionFiles._refs__ )
> 
> 
> > I don't know how the ref count for the enumeration handle got set to two.  

I do now based on above.  

PowerPro creates a hidden internal local variable to keep resujlts of whatever 
expression is on the right hand side of the "in" (in this case, it is just 
hCollectionFiles).  Although it will get released at end of function (since it 
is a local), (or it should, at least), it would probably be better if I 
assigned "" to that internal variable at the end of for loop causing a release. 
 I'll look into that on the weekend or early next week.

Reply via email to