It seems to me as your problem lies in how you setup your simulation in the tcl script. Otherwise the problem lies in your own c++ code if you wrote any, unless, it is a already known problem (like the selection of queue discussed previously).
Is this ddd part of ns-2? If not, please direct the question to the proper instance. > > ns has multiple c++ source files (a few hundred), and im > getting a Segmentation Fault in the execution. using ddd, i cant find out > where and at which exact source code line (or function) the segmentation > fault is being caused, because ddd allows only one source code file to be > open at a time. so when i execute the program using ddd, i dont know which > source file to keep open as i dont know where the segmentation fault is > being caused. > > furthermore, when i step through the program line by line, keeping the > source file with the main() function open, how do i step through all the > files (visuallly) as the control goes from one source file to the next, > line by line > since ddd allows only one source file to be open at a time. > (im hoping to find the location of the segmention fault like this) > > furthermore, ddd doesnt recognise packet.h (and other *.h files) as source > files which can be opened. > > can anyone please help me out here. how do i solve the abovementioned > problems, and is there a way to keep multiple source files open. > i will be grateful for any suggestions or help i recieve > > thanks in advance > regards > pankaj >