Hi
At the moment I am having the following error.
[root at localhost VanetCR]# ns b_univ_twm_active_suicide_usman.tcl 10 2 20
num_nodes is set 100
INITIALIZE THE LIST xListHead
ns: _o1615 set-suicide:
(_o1615 cmd line 1)
invoked from within
"_o1615 cmd set-suicide"
invoked from within
"catch "$self cmd $args" ret"
invoked from within
"if [catch "$self cmd $args" ret] {
set cls [$self info class]
global errorInfo
set savedInfo $errorInfo
error "error when calling class $cls: $args" $..."
(procedure "_o1615" line 2)
(SplitObject unknown line 2)
invoked from within
"_o1615 set-suicide"
[root at localhost VanetCR]#
Can anybody tell me why this "invoked from within" error comes??
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
On Thu, May 7, 2009 at 1:30 PM, Usman Amin <usmanamin.ch at gmail.com> wrote:
> Hi
>
> I added the following definitions in *
>
> ns-agent.tcl*
>
> Class Agent/VanetCR -superclass Agent
>
> Agent/VanetCR instproc init args {
>
> $self next $args
> }
>
> Agent/VanetCR set sport_ 0
> Agent/VanetCR set dport_ 0
>
> Now the following error is coming.
>
>
> *Error*
>
> [root at localhost VanetCR]# ns b_univ_twm_active_suicide_usman.tcl 10 2 20
> num_nodes is set 150
> INITIALIZE THE LIST xListHead
>
> (_o2415 cmd line 1)
> invoked from within
> "_o2415 cmd log-target _o10"
> invoked from within
> "catch "$self cmd $args" ret"
> invoked from within
> "if [catch "$self cmd $args" ret] {
> set cls [$self info class]
> global errorInfo
> set savedInfo $errorInfo
> error "error when calling class $cls: $args" $..."
> (procedure "_o2415" line 2)
> (SplitObject unknown line 2)
> invoked from within
> "$p($i) log-target $RevTrace"
> ("for" body line 5)
> invoked from within
> "for {set i 0} {$i < $opt(nn)} {incr i} {
> set p($i) [new Agent/VanetCR $i]
> $ns_ attach-agent $node($i) $p($i)
> # set the logtarget for every agent
> $..."
> (file "b_univ_twm_active_suicide_usman.tcl" line 343)
> [root at localhost VanetCR]#
>
> Can anybody help.
>
> Usman
> 313-424-0122
>
>
> ---------------------------------------------------------------------------------------
>
>
> Hi
>
> I have NS2.33 running on FC9 in VMWARE. I have to create a new agent.
>
> I have made the following changes in the below listed files
>
> *Makefile*
>
> VanetCR/vanetcr.o VanetCR/vanetcr_accdb.o VanetCR/vanetcr_myheard.o \
> VanetCR/vanetcr_nghbdb.o VanetCR/vanetcr_sspdb.o \
>
> *ns-default.tcl*
>
> Agent/VanetCR set packetSize_ 1000 ;# for VANETCR added May 5th, 2009
> Agent/VanetCR set jitterFactorRBC_ 0.0001
> Agent/VanetCR set jitterFactorRev_ 0.0002
> Agent/VanetCR set sig_delay_ 0.003255
> Agent/VanetCR set verif_delay_ 0.00762
> Agent/VanetCR set lastheard_interval_ 1
> Agent/VanetCR set statinterval_ 0.01
>
> *ns-packet.tcl*
>
> # Wireless:
> ARP # Address Resolution Protocol, network wireless stack
> GAF # Geographic Adaptive Delity, for ad-hoc networks
> LL # network wireless stack
> LRWPAN # zheng, wpan/p802_15_4mac.cc
> Mac # network wireless stack
> *VanetCR # Added for Vanet on May 5th, 2009*
>
> *packet.h*
>
> name_[PT_VANETCR]= "VanetCR"; //Added for VANETCR on May 5th, 2009
> static const packet_t PT_VANETCR = 61; //for VANETCR May 5th, 2009
>
> *After Modifications
> *
> I execute the following commands to recompile
>
> touch common/packet.cc
> make
> make clean
> configure
>
>
> *ERROR*
>
> [root at localhost ns-2.33]# ns
> ns:
> [code omitted because of length]
> : invalid command name "Agent/VanetCR"
> while executing
> "Agent/VanetCR set packetSize_ 1000 "
>
> the strange thing is as soon as I make this change in ns-default.tcl. All
> other tcl files also stop working and the error I listed before is
> returned.
>
> Any help inthis regard will be highly appreciated.
>
> Thanks & Regards,
>
> Usman
> 313-424-0122
>