Pages: 1 2 3 [4]   Go Down
Author Topic: interrupts with conditions  (Read 2699 times)
0 Members and 1 Guest are viewing this topic.
Global Moderator
Melbourne, Australia
Offline Offline
Brattain Member
Karma: 511
Posts: 19356
Lua rocks!
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:

Please post technical questions on the forum - not to me by personal message. Thanks a lot.

Offline Offline
Sr. Member
Karma: 2
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: 99
Posts: 4837
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.


I find it harder to express logic in English than in Code.
Sometimes an example says more than many times as many words.

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