[fpc-pascal] Multipe path in TProcess.Environment ?
XHajT03 at hajny.biz
Mon Jun 22 01:48:30 CEST 2015
On Mon, June 22, 2015 00:24, fredvs wrote:
>> So LD_PRELOAD and LD_LIBRARY_PATH are unix only ?
>> What about Windows, what should be the TProcess.Environment.Text ?
> => not OK.
I'm not aware of an equivalentof LD_PRELOAD on Windows.
As far as LD_LIBRARY_PATH is concerned - as far as I know, MS Windows
search for dynamic libraries on PATH (i.e. the same environment variable
is used for both binaries and their libraries). You might want to be
careful, retrieve the original value using GetEnvironmentVariable and
extend it with potential additional paths as necessary rather than just
replacing the original value completely.
More information about the fpc-pascal