On Wed, 20 Mar 2013, Reinier Olislagers wrote:


The program below works fine on Windows for reading e.g. info on
explorer.exe
It fails on Linux (FPC trunk x64, compiled 2013/03/14) when testing with
explorer.exe:
Going to read version resource for /tmp/explorer.exe
An unhandled exception occurred at $0000000000443607:
EResNotFound: Resource "1" not found
 $0000000000443607

In a bug I raised, Michael van Canneyt indicated this error may be due
to the filename not being picked up.
However, the checking code seems to pick up the correct name.

What am I still doing wrong?

It should work as is;
but can you test with strace, and see if it attempts to read the correct file ?

Michael.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to