Re: [ns] reading a variable in aodv.cc from channel.cc and channel.h

2014-07-11 Thread Behnaz Bostanipour
Hi, It's a segmentation fault since you create an uninitilized object "WirelessChannel *tifp" in your aodv class and after you call your function for this null object. Note that segmentation fault usually occurs when you call a function for a null object. Thus, you should first initialize "Wi

[ns] reading a variable in aodv.cc from channel.cc and channel.h

2014-07-11 Thread Alireza Shamsoshoara
Hello I'm working on my MS thesis and I want to use some value from a variable in channel.cc , this variable return the Pr and Pt , power of receiver and power of transmitter respectively. so i defined a variable ("getvalue_") and a function (getvalue) in channel.h (channel header file) in this w