Hi,
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
enum{
AM_DATAMSG=7,
};
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
}datamsg_t;
Thanks,
Noor
--
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.
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help