i am installing a leach protocol in ns2.35 but i get erros like
cat mit/leach_sims/leach.err
no reachable alloc
(Class create line 1)
invoked from within
"Resource/Energy create _o20 "
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 Resource/Energy"
(procedure "_o17" line 17)
(MobileNode/ResourceAwareNode init line 17)
invoked from within
"_o17 init "
(Class create line 1)
invoked from within
"MobileNode/ResourceAwareNode create _o17 "
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 MobileNode/ResourceAwareNode"
(procedure "leach-create-mobile-node" line 13)
invoked from within
"leach-create-mobile-node $i"
invoked from within
"if { [string compare $opt(rp) "dsr"] == 0} {
for {set i 0} {$i < $opt(nn) } {incr i} {
dsr-create-mobile-node $i
}
} elseif { [string compare $op..."
(file "tcl/ex/wireless.tcl" line 256)
please help me how to fix that
thanks