LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   some kind of error (https://www.linuxquestions.org/questions/linux-newbie-8/some-kind-of-error-4175525760/)

manoto 11-18-2014 08:04 AM

some kind of error
 
hello
I implement pid queue control algurithm in ns 2.35
after implementing ns pid.tcl
I have this error


invalid command name "Queue/pid"
while executing
"Queue/pid create _o52 "
invoked from within
"catch "$className create $o $args" msg"
invoked from within
"if [catch "$className create $o $args" msg] {
if [string match "__FAILED_SHADOW_OBJECT_" $msg] {
delete $o
return ""
}
global errorInfo
error "class $..."
(procedure "new" line 3)
invoked from within
"new Queue/$qtype"
("default" arm line 3)
invoked from within
"switch -exact $qtype {
ErrorModule {
if { [llength $args] > 0 } {
set q [eval new $qtype $args]
} else {
set q [new $qtype Fid]
}
}
intserv {
set qtyp..."
(procedure "_o3" line 14)
(Simulator simplex-link line 14)
invoked from within
"_o3 simplex-link _o16 _o19 1.5Mb 20ms pid"
("eval" body line 1)
invoked from within
"eval $self simplex-link $n1 $n2 $bw $delay $type $args"
(procedure "_o3" line 8)
(Simulator duplex-link line 8)
invoked from within
"$ns duplex-link $node_(r1) $node_(r2) 1.5Mb 20ms pid "
(file "pid.tcl" line 24)


can any one help me to solve this kind of error??

thanks

nbritton 11-19-2014 09:55 PM

Format your code, and then repost your question here.

manoto 11-20-2014 03:09 PM

a new error
 
[QUOTE=nbritton;5272246]Format your code, and then repost your question here.[/QU


hi nbritton


I have a new error if u can help me


when I executed the pid.tcl code, this error has appeard



rong # args: should be "_o3 self class proc n1 n2 bw delay type ..."
(Simulator duplex-link line 1)
invoked from within
"$ns duplex-link $nc0 $nc1 15Mb 5ms "
(file "pid1.tcl" line 26)


what should I do??


Thanks


All times are GMT -5. The time now is 01:30 PM.