Hi,
my name is Christian Schilling and I am a student at the Technical
University of Hamburg-Harburg, Germany. I am trying to add a
propagation model to ns2-2.29.
While editing parts of the simulator (mobilenode.cc/h) and adding a
new propagation model I encountered the following issue:
in wireless-phy.cc I encounter this:
<code>
...
s.stamp((MobileNode*)node(), ant_, 0, lambda_);
/** my code **/
MobileNode *tr = p->txinfo_.getNode(); // here I can see in the
debugger, that *tr still contains valid values .... like X_ = 100, Y_
= 100
cout << "T(x,y)=" << tr->X() << "," << tr->Y() << endl; // when I
try to print them, I only get gibberish, like 5.35107e-315
/** my code end **/
...
</code>
Where do I have to go to find the root of this unexpected behaviour?
Any help will be greatly appreciated.
Regards,
Christian
___________________________________________________________
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de