Wow, that's a lot. Taking it one at a time.

"1. COM chews up a lot of memory and pegs the CPU. "

.COM is known to be a hog but it shouldn't be that bad though. .COM is known to do that if asked to do to much at once. What is your program trying to do when the CPU pegs? I think your other perfomance issues might be related to this one.

does Windows had a 'nice' equivalent for COM?"

Yes .NET, but it's an incremental improvement only.

I have been experimenting with:
Win32::OLE->FreeUnusedLibraries();
Win32::OLE->SpinMessageLoop(); sleep 5;

This is sure to cause more problems at this point. Better to find out what's causing the original problem and fix that. The FreeUnusedLibraries hack still can take time to deallocate all the modules and will only cause things to run more slowly if you are not truely done with everything.

As to the other problems you mention; my ESP powers tell me they are related to .COM getting behind with what your telling it to do. This might or might not be the case if my ESP is faulty.

Did you know the debugger from the .NET SDK can be used on .COM objects?


s//----->\t/;$~="JAPH";s//\r<$~~/;{s|~$~-|-~$~|||s |-$~~|$~~-|||s,<$~~,<~$~,,s,~$~>,$~~>,, $|=1,select$,,$,,$,,1e-1;print;redo}

In reply to Re: cpu, memory, and permissions issues with Win32::OLE by starbolin
in thread cpu, memory, and permissions issues with Win32::OLE by punkish

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.