Constantin
Well-known member
Hi guys,
Years ago, I used strings extensively to put together CSV lines to be added to a SD data file. Thanks to Paul and others, the String library hence has become more stable. My question to the brain trust here is whether Strings are stable enough to be used in systems that will be running for months at a time. Especially if they are not fixed-length, they will be used in function calls (i.e. they'd get created and destroyed regularly), etc. Are there methods to help clean up the RAM space to ensure that there won't be issues?
Or in the light of the above constraints is it better practice to create a large fixed-length char array as a global variable and fill that as needed?
Thanks! Constantin
Years ago, I used strings extensively to put together CSV lines to be added to a SD data file. Thanks to Paul and others, the String library hence has become more stable. My question to the brain trust here is whether Strings are stable enough to be used in systems that will be running for months at a time. Especially if they are not fixed-length, they will be used in function calls (i.e. they'd get created and destroyed regularly), etc. Are there methods to help clean up the RAM space to ensure that there won't be issues?
Or in the light of the above constraints is it better practice to create a large fixed-length char array as a global variable and fill that as needed?
Thanks! Constantin