[EMAIL PROTECTED] wrote:
>
>  I am working on add multi-interface multi-channel support  in ns2 ,but
> now I meet a segmentation fault in implementing adding Multiple Interface
> Support in NS-2, I use command :
> $gdb ns
> $r channel.tcl
> $bt

> ..............
> Now I think segmentation fault is caused by WirelessChannel::sortLists
> (),but I can not find practice reasons, please help me!

Learn how to help yourself by getting started using a debugger like gdb or
ddd. Look in the ns-2 wiki under "Troubleshooting".


> another question is Simulator instproc add-channel { indexch ch}
> {
>  $self instvar chan
> set chan(indexch) $ch
           ^^^^^^^
> }
> when i run test.tcl ,It always gices me that variable is not array.

This has got to mean

set chan($indexch) $ch

Check out some tcl tutorials on the web.


Cheers,

--Timo

Reply via email to