Re: [Tinyos-help] Problem when using PoolC

2008-12-17 Thread behnaz . bostanipour
Hi, I just checked and the pool is empty. After I tried to check the size and maxSize of the pool before and after get as below: maxSizeBeforeGet=call SendPool.maxSize(); sizeBeforeGet=call SendPool.size(); newmsg = call SendPool.get(); maxSizeAfterGet=call SendPool.maxSize(); sizeAfterGet=call

Re: [Tinyos-help] Problem when using PoolC

2008-12-16 Thread Philip Levis
On Dec 5, 2008, at 1:58 AM, behnaz.bostanip...@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

[Tinyos-help] Problem when using PoolC

2008-12-05 Thread behnaz . bostanipour
Hi, While using interface Pool as below: module MyP { . . . interface Queuemessage_t* as SendQueue; interface Poolmessage_t as SendPool; . . } . . . task void sendDataPkt() { CADataMsg_t* carm; message_t* newmsg = call