in reply to Re: method "new" leads to infinite loop with 100% CPU, troubleshooting??
in thread method "new" leads to infinite loop with 100% CPU, troubleshooting??

+++BrowserUk+++

thank you for pointing to this!
Yes, now I see, it takes minutes(!) to extract the couple of strings from a big binary file like this shell32.dll. Unbelievable!
Can you point to an another way to get File Version Information from EXE without using WinAPI?

I think about brute force by finding the text strings in binary.

  • Comment on Re^2: method "new" leads to infinite loop with 100% CPU, troubleshooting??

Replies are listed 'Best First'.
Re^3: method "new" leads to infinite loop with 100% CPU, troubleshooting??
by resistance (Beadle) on Aug 22, 2008 at 19:07 UTC
    found this here on perlmonks:
    http://www.perlmonks.org/?node_id=287010 Win32 Fileversion info from .exe/.dll-files (16/32-bit) - takes only 0.03 second to process shell32.dll file.

    Great site and great members!

    Thanks
Re^3: method "new" leads to infinite loop with 100% CPU, troubleshooting??
by BrowserUk (Patriarch) on Aug 22, 2008 at 19:23 UTC
      Which "couple of strings" do you need?

      http://www.perlmonks.org/?node_id=287010
      Win32 Fileversion info from .exe/.dll-files This code does exactly what I need - extract CompanyName FileDescription FileVersion ProductVersion etc from exe/dll files.

      Seems that some tasks should/can be done with simple methods like this one, instead of using modules. )