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

Re: Compilation problem.



On Wed, 16 Jun 1999, satish kumar reddy wrote:

>    I was trying to run an example file and got the following error:
> 
> guru>ns example.tcl
> _o2: unable to dispatch method namtrace-all
>     while executing
> "$ns namtrace-all $nf"
>     (file "example.tcl" line 3)
> 
> 
> Can anyone tell me what the problem is???

AFAIK it won't work without a trace-all as well. The tracefile
generation code is rather intertwingled... you have to generate the
.tr file as well. Messy, but there you have it.

L.

'unable to dispatch method' is such an unhelpful catch-all error.

> The code for the example is given below:
> 
> # Starts here
> 
> set ns [new Simulator]
> set nf [open out.nam w]
> $ns namtrace-all $nf   
> proc finish {} {
>         global ns nf
>         $ns flush-trace
>         #Close the trace file
>         close $nf
>         #Execute nam on the trace file
>         exec nam out.nam &
>         exit 0
> }
> set n0 [$ns node]
> set n1 [$ns node]
> $ns duplex-link $n0 $n1 1Mb 10ms DropTail
> $ns at 5.0 "finish"
> $ns run
> 
> # Ends here
> 
> 
> thanks in advance.
> 
> satish
>[..]
>                  PUTHALAPAT SATISH KUMAR REDDY(MCSE,MCP+I)   		
>                         PROGRAM: MS		   
> 	     MAJOR: ELECTRICAL AND COMPUTER ENGINEERING  
> 
> HOME ADDRESS:					Systems Administrator				 						   	
> 600 E.ROOSEVELT ST,APT# 284                     Department of Experimental
> BATON ROUGE			     	  	Statistics.			                                                         
> LOUISIANA 70802                                  
> 
> HOME PHONE NO: 					OFFICE PHONE NO:
> (5O4)344-8873					(504)388-8316
> 
> E-MAIL ADDS:				  
> [email protected]				[email protected]                  

<[email protected]>PGP<http://www.ee.surrey.ac.uk/Personal/L.Wood/>