Sun Feb 10 14:49:15 2013: Request 83237 was acted upon.
Transaction: Correspondence added by BULKDD
       Queue: Win32-API
     Subject: Can't use string ("Win32::API::Struct") as a HASH ref while 
"strict refs"
   Broken in: 0.75
    Severity: Critical
       Owner: Nobody
  Requestors: compuvision...@gmail.com
      Status: new
 Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=83237 >


On Sat Feb 09 09:27:24 2013, gepebril wrote:
> Can't use string ("Win32::API::Struct") as a HASH ref while "strict
> refs" in use at C:/strawberry/perl/vendor/lib/Win32/A PI/Struct.pm line
> 158. Had to use force to install Win32:SystemInfo module. my %mHash =
> (TotalPhys => 0, AvailPhys => 0, MemLoad => 0); if
> (Win32::SystemInfo::MemoryStatus(%mHash)) # Failes on this line!!
> Problem wasn't there with 0.62 Thanks in advance
> 
> Same as last bug, I just noticed that there was no subject and that I
> could upgrade from 0,73->0,75 and haven't figured out a way to remove
> the last entry

So what is the failing code? I tried a "make test" on Win32:SystemInfo
and it passed. I also tried
___________________________________________________________
use Win32::SystemInfo;
my %mHash = (TotalPhys => 0, AvailPhys => 0, MemLoad => 0);
if (Win32::SystemInfo::MemoryStatus(%mHash)) {0;}
___________________________________________________________
and saw nothing (like warnings/dies) in console. Using ::API 0.75 on
32bit winxp.

Also
______________________________________________________________________
C:\Documents and Settings\Owner\Desktop\cpan libs\w32si>perl test.pl
1..3
ok 1
ok 2
ok 3

C:\Documents and Settings\Owner\Desktop\cpan libs\w32si>
______________________________________________________________________

Reply via email to