[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ns] cmd not being executed



Obviously it failed in executing that c++/otcl linkage. The most common
problem I've seen is return value in the c++ part. It should always return
(TCL_OK) otherwise this failure pattern is produced. If this is not the
case, you may want to set a breakpoint in your command() to see (1) if
it's entered and (2) why it failed there.

- Haobo

On Fri, 5 May 2000, Sudhindra Suresh Bengeri wrote:

> Date: Fri, 5 May 2000 16:28:55 -0400 (EDT)
> From: Sudhindra Suresh Bengeri <[email protected]>
> To: [email protected]
> Subject: [ns] cmd not being executed
> 
> Hi Haabo,
> 
> I am facing the following problem when I try to execute a cmd in my 
> simulation
> 
>     (_o14 cmd line 1)
>     invoked from within
> "$self cmd start-up"
>     (procedure "_o14" line 2)
>     (Agent/s2vDvmrp start-up line 2)
>     invoked from within
> "$s2vmrtObject_ start-up"
>     (procedure "_o11" line 14)
>     (Node/s2vMrouter enable-s2vmcast line 14)
>     invoked from within
> "$node enable-s2vmcast $self"
>     invoked from within
> "if [$self s2vmulticast?] {
> puts "Hurrah !! our multicast has been enabled"
> $node enable-s2vmcast $self
> }"
>     (procedure "_o4" line 36)
>     (Simulator node line 36)
>     invoked from within
> "$ns node"
> 
> 
> I have a C++ command which I want to call after from my otcl script
> creates the object.
> 
> I am eagerly awaiting your reply.
> 
> Thanks and regards,
> Sudhin.
> 
> ****************** Sudhindra Suresh Bengeri *******************
> School:                       | Home:                         |
> Dept. of Computer Science     | 2502, Avent Ferry Rd          |
> NCSU, Raleigh, NC.            | Apt #206, Raleigh, NC - 27606 |
> Ph. 919 515 7135(TA room)     | Ph. 919 838 8746              |     
> my web projection: http://www4.ncsu.edu/~ssbenger
> 
>