On Fri, 5 May 2000 11:14:25 +0200, "Thomas Zapf-Schramm"
<[EMAIL PROTECTED]> wrote:

>But why should "undef" make a difference at all? As far as I understand the
>scope of "my $aktDok" should be within the "{ }" of the while loop. Doesn't
>this mean that its reference count goes down to zero and its memory is
>released as one iteration of the loop is processed? Isn't the body of the
>loop entered and left at each iteration cycle? Is it only entered and left
>once for the whole looping construct?

No, there should be no need for the "undef"; Perl does this automatically
(for lexical variables only, off course).

>However, I tried undefining again. Everything is the same. To me it seems to
>be a Word-Problem or an OLE problem.
>
>An equvalent VBS script freezes up after 70 cycles too. But the same thing
>in VBA started directly from within Word runs forever!

If it happens in VBS too then it is obviously a Word problem. :-)  VBA is
different, because it runs in-process whereas Perl and VBS use Word as an
out-of-process component.

You might want to try to use a different threading model, but I believe
VBS already uses a STA by default, so it's doubtful it will help.

>Maybe THE BIG DUBOIS has a suggestion?

I'm not overweight, I'm undersized. :-)

-Jan

---
You are currently subscribed to perl-win32-users as: [archive@jab.org]
To unsubscribe, forward this message to
         [EMAIL PROTECTED]
For non-automated Mailing List support, send email to  
         [EMAIL PROTECTED]

Reply via email to