>It seems to me that when you get a warning, you're doing something wrong
>or it wasn't coded to take all possibilities into consideration - so I
>never turn off warnings or strict. I already found two legit bugs in that
>module, so I'm guessing there are more to find.

I agree about the warnings. I've added something to the code ( I am
attaching the script I've used):

open(OUT,">output.txt") or die;
  foreach (sort {$a <=> $b} keys %memlist){
  print OUT "\nContent of $_ -> $memlist{$_}\n";
  print OUT $proc->hexdump($_, $memlist{$_})."\n";
}
close(OUT);

And finally I think I get the reason for the warning:
when reading a chunk of memory it appears this error on the output to a file
(whereas in the screen output it wasn't readable):

Content of 995328 -> 249856
Err: length is too long!

Content of 1245184 -> 4096
00130000 : 41 63 74 78 20 00 00 00 01 00 00 00 3C 05 00 00 : Actx
.......<...
00130010 : 7C 00 00 00 00 00 00 00 20 00 00 00 00 00 00 00 : |.......
.......
00130020 : 14 00 00 00 01 00 00 00 03 00 00 00 34 00 00 00 :
............4...
etc..

So I think that the chunk size exceeds some buffer capacity. I don't
understand the inner workings of
Memory.pm so I am not able to say more.

Alejandro

Attachment: read.pl
Description: Binary data

_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to