问题描述
是否有一种方法可以处理Arduino字符串对象,因此当不再需要该字符串时,它释放的内存将被释放?
我没有在引用中找到函数,当我调用free(&str)时,抛出了异常。
在此先感谢您的帮助。 西蒙
编辑: 我这样用Arduino-IDE进行编码
void setup() {
// a few setup things
}
void loop() {
String str1 = "some json String";
String str2 = str1.substring(10);
String str3 = jsonRemoveWhiteSpace(str2);
// so at this point I'd like to dispose of str1 and str2 to free up the memory,// because the strings are also quite long json strings.
}
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)