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

RE: Accessing a C++ function from ns



It usually happens when your comamnd return TCL_ERROR. Did you return
TCL_OK from your command()? Was there an exception? Try set a breakpoint
there and see what happened. 

- Haobo

On Tue, 17 Aug 1999, Christopher May wrote:

> Hi,
> 
> I keep getting the following error message, when I attempt to access a 
> function in C++ from ns. I am using a "command" function which reads an 
> argument then calls a function . I think that I am using the wrong syntax
> 
> $node(nd) send_sols.
> 
> The command function parses the argument, however when I run the ns script I 
> get the following error message.
> 
>     (_o28 cmd line 1)
>     invoked from within
> "_o28 cmd send_sols"
>     invoked from within
> "catch "$self cmd $args" ret"
>     (procedure "_o28" line 2)
>     (SplitObject unknown line 2)
>     invoked from within
> "$node(mh) send_sols"
>     (procedure "create-topology" line 27)
>     invoked from within
> 
> I was wondering if anyone knows where I am going wrong. Thanks in advance
> 
> Chris
> 
> 
> ______________________________________________________
> Get Your Private, Free Email at http://www.hotmail.com
>