Re: [ns] Issue with AppData and Packet::copy() in packet.h

2009-04-14 Thread Andre Reis
Just solved it, for future reference here it is: You can't create your object like this: PacketData vodinfo(10); It must be: AppData* vodinfo = new PacketData (10); After that, everything works fine. Andre On Apr 14, 2009, at 10:04 AM, Andre Reis wrote: Greetings, I'm having an issue at a

[ns] Issue with AppData and Packet::copy() in packet.h

2009-04-14 Thread Andre Reis
Greetings, I'm having an issue at a lower level of ns2, version 2.31. In my application, I create a PacketData object, and send a new packet with an UDP agent, like this: PacketData vodinfo(10); agent_->sendmsg(size_, &vodinfo); I don't even fill the data in the object yet. At some point in the