Sketch ramdomly halts/freezes...

Since I Added the freemem() function, my sketch doesn't stop (yet). So thank you. If i should avoid using Strings, whats the best way to parse incoming data from the UDP library? Char[]?

pYro_65:
You are using a lot of stuff, find the freemem function ( on forum/playground ) and verify you have any ram left, then go from there.

Thanks.

im guessing that this is the Issue:

Warning: In versions of the Arduino IDE up to 1.0.1 (at least) there is a bug in dynamic memory allocation. This affects both malloc/free and new/delete. In particular it also affects the String class, which uses dynamic memory allocation. This is discussed in this forum thread. That thread mentions a work-around (replacement free() function) until the inbuilt libraries are updated.

Thank you.