Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Win32::File::Ver GetFileVersion

by leonidlm (Pilgrim)
on Oct 07, 2008 at 13:04 UTC ( #715771=perlquestion: print w/replies, xml ) Need Help??
leonidlm has asked for the wisdom of the Perl Monks concerning the following question:

Hi all,
I run into a strange error while using the Win32::File::Ver module using the GetFileVersion method.
The perl.exe just crashes when reaching the following line of code:
$hashRef = GetFileVersion($fileName);
I tried to use the ptkdb debug module and step into the method but it crashes even before showing me the method code!
Help me plz :)

Replies are listed 'Best First'.
Re: Win32::File::Ver GetFileVersion
by BrowserUk (Pope) on Oct 07, 2008 at 13:52 UTC
      Os - Windows 2003 $fileName - c:\run.dll

        I just ran the latest version from cpan against 2500 files, 1800 of which are executables, and it either report the data or returned undef.

        There must be something strange about that file. Did you compile Win32::File::Ver yourself or get it as a PPM?

        Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
        "Science is about questioning the status quo. Questioning authority".
        In the absence of evidence, opinion is indistinguishable from prejudice.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://715771]
Approved by wfsp
[Corion]: On the upside, I spend a lot of time thinking this weekend about how to actually implement rate limiting for futures, and if things work out, maybe even loading a configuration from an external file makes sense
[Corion]: I've also found some interesting invariants that I have to think/write about more. A simple rate limiter will never change the order of the input, while a limiter that allows for parallel execution will change the order. But my API currently allows for bo
[Corion]: ... for both, and I'm not sure if I want to add the cruft from the parallel API (a token that you need to hold on to while you hold the lock) to the rate limiting API too, to allow seamless up/downgrades, or not.
[Corion]: Also, rate limiting will look great with await: my $token = await $limiter-> limit($hostname); instead of my $f = $limiter->limit( $hostname )->then(sub { my( $token)=@_; ... });

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (9)
As of 2017-10-23 08:25 GMT
Find Nodes?
    Voting Booth?
    My fridge is mostly full of:

    Results (277 votes). Check out past polls.