[Tinyos-help] Problem when using PoolC
Philip Levis
pal at cs.stanford.edu
Tue Dec 16 09:35:26 PST 2008
On Dec 5, 2008, at 1:58 AM, behnaz.bostanipour at epfl.ch wrote:
>
> I realized that the value of newmsg in sendDataPkt() is most of
> the time NULL.
> Should I initialize it or am I doing sth wrong?
> here is my wiring:
Pool returns NULL if it is empty. Can you check that it's not empty?
This could happen because you have a memory leak and so the pool size
shrinks over time or because packets are not draining as fast as they
are being generated (so the pool runs out).
Phil
More information about the Tinyos-help
mailing list