[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bugs in errmodel.cc
On Fri, 6 Mar 1998, John Heidemann wrote:
> >>
> >> 2) There is a typo, we should have : bind("errPkt_", &errPkt_);
>
> The typo is almost certainly a bug,
> but in general, things which are bound (with bind())
> don't need to be initialized in C++
> because they're initialized in tcl in the
> tcl/lib/ns-default.tcl.
> errPkt_, errByte_, and errTime_ are all init'ed there.
> I'm not sure why therefore you observed them starting with high values
> (perhaps because of the typo?).
>
> -John Heidemann
With the typo, errPkt_ in C++ is not initialized and then starts
with random (big) values ===> you get no errors.
Saad
___________________________________________________________________
Saad Biaz Abou Youssef
Graduate Research Assistant Office : (409) 845 50 07
Department of Computer Science Home : (409) 862 91 35
College Station, TX, 77843-3112
___________________________________________________________________