Thomas,

The problem of UID invalid is always the same one: a null pointer.

You must debug your program with Eclipse.

Ask google for Eclipse + debug + ns-2.

You will find some tutorials to debug an ns-2 protocol on Eclipse.

Okay, you must know for now:

if you is sending a packet to transport layer, transport will
dealocate your packet, so send a copy of the packet with copy()
method. Use:

Packet p* = new Packet();

send(p->copy()); // hey transport, take a copy of my packet to process
it! Now I will forward the original one!

If your packet is a new type of packet (a special one) you must
implement a correct copy method to the attributes of your new packet.
So the copy will proceed okay.

After all, debug is THE ORACLE.

Sidney Doria
Brazil

2008/10/15 dias thomas <[EMAIL PROTECTED]>:
> Hi Doria
>
> I have some serious problems in my simulation
> When i simulate my routing protocol after second broadcast i get an error
> "scheduler event UID not valid"
> I tried out all tips given by varios users like freeing and reallocating new
> packet, checking timers, the modifications in scheduler timer.cc etc but the
> error still comes.
>
> there is some event which is not getting ecxecuted and giving a positive UID
>
> Pls help me, secondly how to which event is creating this problem.
>
> thanks
>
>
> On 10/12/08, Sidney Doria <[EMAIL PROTECTED]> wrote:
>>
>> Hi NS-2 people,
>>
>> This is a useful FAQ about NS-2:
>>
>> http://web.syr.edu/~dchen02/FAQ.txt
>>
>> I propose to include all Q&A in the NS-2 Wiki.
>>
>> --
>> Sidney Doria
>> Redes ad hoc móveis
>> Mestrado em Computação
>> UFCG
>> Brasil
>>
>> "Nessa jornada, o conhecimento será o seu escudo..."
>> (Mestre dos Magos no episódio do grimoire de ouro)
>>
>
>
>
> --
> Sqn Ldr P Dias Thomasinous
> Information Technology
> IIT Kharagpur
> 721203
> Mobile No 9734405296



--
Sidney Doria
Redes ad hoc móveis
Mestrado em Computação
UFCG
Brasil

"Nessa jornada, o conhecimento será o seu escudo..."
(Mestre dos Magos no episódio do grimoire de ouro)

Reply via email to