--- In [email protected], "entropyreduction" 
<alancampbelllists+ya...@...> wrote:
>
> --- In [email protected], "brucexs" <brucexs@> wrote:
> > 
> > Turned out to be pretty easy with the hidden local approach.  
> 
> > with expr
> > ...
> > endwith
> > 
> > implemented in 4.9m11
>  
> > http://powerpro.webeddie.com/download/powerpro.exe
> > 
> > Let me know if you have time to test.

There seems to be an unreleased handle left over after

With objRange.Font

 .Bold = 1
 .Animation = 3
 .Size = 30

endWith

(because I next time I run same script, a handle reported allocated
is one larger than previous run, which in my way of allocating handles means 
previous one wasn;t released).

Also, 

objDoc = objApp.Documents.Add
...
local objDoc = com.get_object(scriptfolder ++ ?"\demo.doc")

results in an unreleased handle, but

objDoc = objApp.Documents.Add
...
objDoc = com.get_object(scriptfolder ++ ?"\demo.doc")

releases handle as expected





Reply via email to