Pages: 1 2 3 [4]   Go Down
Author Topic: interrupts with conditions  (Read 1859 times)
0 Members and 1 Guest are viewing this topic.
Global Moderator
Offline Offline
Brattain Member
Karma: 452
Posts: 18694
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

String msg = String("");

Please note that in versions of the IDE up to and including 1.0.3, the String library has bugs as discussed here and here.

In particular, the dynamic memory allocation used by the String class may fail and cause random crashes.

I recommend reworking your code to manage without String. Use C-style strings instead (strcpy, strcat, strcmp, etc.), as described here for example.

Alternatively, install the fix described here:  Fixing String Crashes

Preferably upgrade your IDE to version 1.0.4 or above at:

Offline Offline
Sr. Member
Karma: 1
Posts: 344
YES! It is possible. Even Impossible Says I m Possible. :)
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks Mr. nick for letting me aware of the issue.

"Imagination is more important than knowledge."

Pittsburgh, PA, USA
Offline Offline
Faraday Member
Karma: 58
Posts: 4020
I learn a bit every time I visit the forum.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I note that even with the fixed free, C++ Strings still copy themselves to change length.

C++ Strings are wasteful of both RAM and cycles. They were made for PC's and people who would rather save on typing and learning than to think.


Examples can be found in your IDE.

Pages: 1 2 3 [4]   Go Up
Jump to: