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. Tomas _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal