Pages: 1 [2]   Go Down
Author Topic: sd with serial communication, how do?  (Read 1613 times)
0 Members and 1 Guest are viewing this topic.
Leeds, UK
Offline Offline
Newbie
*
Karma: 0
Posts: 29
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Be careful using Strings as these are prone to causing memory problems - and many say best avoided.

Paul
Logged

piacenza
Offline Offline
God Member
*****
Karma: 0
Posts: 654
prima della pazzia c'è la passione
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

hi
@countrypaul
Code:
Be careful using Strings as these are prone to causing memory problems - and many say best avoided.

can you tell me more?

stefano
Logged


0
Offline Offline
Edison Member
*
Karma: 63
Posts: 1604
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

There is a serious bug in the dynamic memory free() function that can cause String to crash.

http://arduino.cc/forum/index.php/topic,115552.0.html

Fixes are presented in the above topic.

The problem may also cause SD.h to crash if many files are opened an closed.
Logged

Pages: 1 [2]   Go Up
Jump to: