Hello. Sorry to come back with that story... ;-(
I have used inside a script LD_LIBRARY_PATH` and at end runs the espeak executable. So a Tprocess run the script. Ok, it works but... now i do not have access to espeak anymore, not possible to cancel the speech. AProcess.terminate has impact on the script but not on what has done by the script. So, the loadlibrary() approach is more efficient because the process runs espeak directly => so possible to cancel it... Does it really have problems to use that loadlibrary() approach ? Ok maybe first a process that run a script for assign path of lib and then a other process to run espeak ? Many thanks. Fre;D ----- Many thanks ;-) -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/loadlibrary-unsafe-tp5721801p5721856.html Sent from the Free Pascal - General mailing list archive at Nabble.com. _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal