in reply to Win32::OLE::Const startup delay

Hi,[id://monarch]. I tried your script, and it compiled immediately, giving me a "syntax OK" message. I'm running the same version of Perl as you are, under XP Home, with a slower CPU but more memory. I'm having trouble imagining what might be causing the delay without burning cycles. Do you notice much disk activity? Do you have Microsoft products open that may somehow affect the script? Would there be any reason for something to time out, without showing any error?

I suppose the next question is, what is different now, than was in effect several months ago? New software, updates of perl or modules, etc.?

Replies are listed 'Best First'.
Re^2: Win32::OLE::Const startup delay
by monarch (Priest) on Mar 06, 2006 at 01:19 UTC
    There's a line in:
    $PerlDir\site\lib\Win32\OLE\Const.pm
    that reads
    __PACKAGE__->_Typelibs;

    If I comment out this line then it loads instantly, if I uncomment this line, then I get my delay.

    Update: it appears that _Typelibs() is defined in

    site\lib\auto\Win32\OLE\OLE.dll