hi ns users............. i m working on new routing protocol and i need to get the location of other node.......when i condition is satisfied..... so i could do tht using .the folllowing code............. ......... ........ ....... Node* thisNode = Node::get_node_by_address(net_id.getNSAddr_t()); double xThis=0.0,yThis=0.0,zThis=0.0; ((MobileNode*)thisNode)->getLoc(&xThis,&yThis,&zThis); printf("\n other_mac_id=%d",otehr_node_id); Node* otherNode = MobileNode::get_node_by_address(other_node_id); double xOth,yOth,zOth; ((MobileNode*)otherNode)->getLoc(&xOth,&yOth,&zOth); ...... . . . . but after say .........a thousand times or so the (after excuting this code)...... the program hits a segmentation fault .......... it really tried to find the bug........... and i find that......... whenever i m ..............including the second part......... . . . Node* otherNode = MobileNode::get_node_by_address(other_mac_id); double xOth,yOth,zOth; ((MobileNode*)otherNode)->getLoc(&xOth,&yOth,&zOth); . . . . it hits the segmentaion fault.......... if anyone .know other way of finding the position of the node...............they can help me or .if u know what to do .....to void segmentation fault .......please let me know ........... thanks srikanth --------------------------------- Yahoo! India Answers: Share what you know. Learn something new. Click here