GetFileVersionData causes file dependent errors AFTER gathering info from file on both UNICODE and ANSI (tested different exes, dlls). I mean errors are not random - some files always pass with the same flag, but fails with another (e.g. pckr.dll never fails with CompanyName or FileVersion but always fails with FileDescription or ProductName). Problematic strings are always correct - errors occur AFTER retrieving and returning them.
Code:
Runtime Error (at 750:30170):
Access violation at address 05C276A2 in module 'Isab.dll'. Read of address A7FFFFFC.
Code:
Runtime Error (at 750:30170):
Exception "EOleException" at address 00497587.
Code:
Runtime Error (at 2:273):
Exception "EOSError" at address 00497587.