TProcess change Parameters between repeated execution lazarus / 31-LCL ---------------------------------------------------------------------- sporex · 2022-03-27 11:58 Hi, I have to ask this here, as I don't have the hardware to test it at the moment. Can I change the parameters between consecutive executions of TProcess or do I have to Free and Create the Process again?Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i I2C:=TProce ss.CreateI2C.Executable:='/usr/sbin/i2cset'I2C.Parameters.Add('- y');I2C.Parameters.Add('0x4B'); I2C.Execute;I2C.WaitOnExit; I2C.Parame ters.Delete(I2C.Parameters.Count-1); // delete 0x4BI2C.Parameters.Add('0x00');                               // replace with 0x00 I2C.Execute;I2C.WaitOnExit; ........  And an additional question: The parameter.add function does not accept any whitespace? Is that correct? Thank you in advance My OS is Linux Debian ---------------------------------------------------------------------- MarkMLl · 2022-03-27 12:12 I can't say authoritatively and (looking at code) have usually treated it as though it needs to be recreated. If nobody better informed comes along I suggest experimenting: first with the same parameters etc., and then (referring to https://www.freepascal.org/docs-html/fcl/process/tprocess.html) clearing and redoing the parameter list. Attached file might interest. MarkMLl ---------------------------------------------------------------------- sporex · 2022-03-27 12:19 ok, thank you. To be on the save side I will free and recreate. Thanks