On 2017-02-28 16:06, Graeme Geldenhuys wrote: > // p.CurrentDirectory := ExtractFilePath(p.Executable);
Just thought I would explain this. I don't change directory there (in the TProcess instance), because the program itself changes the current directory before calling RunTProcess(). As for the procedure not returning - from what I can see (I think) it seems like if Delphi fails to compile the project, that's when my code get stuck and never returns. Regards, Graeme -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal