http://www.perlmonks.org?node_id=21092


in reply to Re: WIN32 calls
in thread WIN32 calls

he he.. well what you posted here, _was_ excactly what i set out to do... =)

Unfortunatly, I cannot get yours to work (.. my incompetence surely).. it dies at :

$perflib->GetObjectList($process_obj, $proc_ref);

If there is an obvious reason for this, I would be glad to know, otherwise I will just continue hacking away at it myself...

Replies are listed 'Best First'.
RE: RE: Re: WIN32 calls
by t0mas (Priest) on Jul 05, 2000 at 13:55 UTC
    Win32::PerfLib works only on NT. Maybe only 4.0?

    /brother t0mas
RE: RE: Re: WIN32 calls
by gaggio (Friar) on Jul 05, 2000 at 17:31 UTC
    Hmm.
    This is weird. Yes, what kind of Windows do you have? I have Win NT 4.0 SP6 with Perl version 5.005_03 built for MSWin32-x86-object (do a Perl -v to check).
    Also, what is the error message when it dies?
      When I call GetCounterNames I get a:
      Undefined subroutine &Win32::PerfLib::GetCounterNames called at xxx.pl line yy.
      I use Win2k and perl, v5.6.0 built for MSWin32-x86-multi-thread (AP613).
      Microsoft has probably changed some internal stuff that makes it uncompatible (in their usual care for peoples invested time and money :).

      /brother t0mas