[Tinyos-help] segmentation fault

Noor n.alnakhala at gmail.com
Tue Dec 24 11:49:55 PST 2013

I'm trying to define array in my data message with a size, but I got
segmentation fault.
But when I remove the size and make the array without size it works fine.

Although I know that there should be a size for the array.

Hope someone can help !

This is the datamessgae


typedef nx_struct datamsg{
nx_uint16_t junk;
nx_uint16_t state;
nx_uint16_t packet_type;
nx_uint16_t cluster_type;
nx_uint16_t mytotal;
nx_uint16_t info[];// when I put the size, it gives me segmentation fault


View this message in context: http://tinyos-help.10906.n7.nabble.com/segmentation-fault-tp23980.html
Sent from the TinyOS - Help mailing list archive at Nabble.com.

More information about the Tinyos-help mailing list