in reply to Re: multiple infinitive loops
in thread multiple infinitive loops

I think you may be onto a loser trying to combine Perl threads and COM (Win32::OLE), unless this has been improved recently. See this article on the ActiveState Win32 mailing list (the post is over a year old - things have moved on a tad since - but the error shown matched the one I received). Dispite this, using fork as shown by Plankton in the earlier example does appear to work for me (i.e. it executes both subs, which is odd, since fork on win32 is implemented with threads...).

my $pid; if( $pid = fork ) { check_1(); } elsif ( defined $pid ) { check_2(); }

Hope the mailing list reference helps.

Cheers,

-- Dave :-)


$q=[split+qr,,,q,~swmi,.$,],+s.$.Em~w^,,.,s,.,$&&$$q[pos],eg,print

Replies are listed 'Best First'.
Re^3: multiple infinitive loops
by ozkaa (Acolyte) on Oct 06, 2004 at 20:55 UTC
    hey dave,

    yeah I tried the fork :) but with no luck

    actually the app is getting pretty unpredicatable using this method (i.e.) one time is does it work correctly and the other time it doesn't :D

    I think the win32::ole is a little bit of a P.I.T.A. and I might switch over to M$ vb to check things...,

    Thanks for your input
    Oscar