The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
Google UNIX.COM


High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Managing FileSystems on Solaris panchpan SUN Solaris 15 10-17-2007 01:35 AM
Managing nodes??? TRUEST UNIX for Advanced & Expert Users 5 03-21-2003 02:47 AM
best solution for managing many nameservers Bashar UNIX for Advanced & Expert Users 1 01-07-2003 12:32 PM
C++ Problem, managing >2Gb file ASOliveira High Level Programming 4 08-29-2002 11:39 AM
managing users SmartJuniorUnix UNIX for Dummies Questions & Answers 4 09-20-2000 11:34 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 05-11-2006
Registered User
 

Join Date: May 2006
Posts: 1
Unhappy error in managing linklist

I have used link list in my program to operate on set of values
the operations that i am doing : add , delete from link list
when i am deleting the intermidiate or last value it is not giving any error but when i am deleting the 1 st value then program hangs

can anyone suggest me the reason
Reply With Quote
Forum Sponsor
  #2  
Old 05-11-2006
Registered User
 

Join Date: Aug 2005
Location: Saskatchewan
Posts: 979
It is very difficult to pinpoint the problem without seeing your code, but I think it's getting stuck in an infinite loop... Anything else and it'd crash, not hang. You may be able to narrow it down by using a debugger with breakpoints, or just inserting print statements at critical places in the code.
Reply With Quote
  #3  
Old 05-16-2006
Registered User
 

Join Date: May 2006
Posts: 101
the glibc comes with some handy macros for linked lists in queue.h. see also 'man queue' for
examples who to use them propperly.
Reply With Quote
  #4  
Old 05-17-2006
Technorati Master
 

Join Date: Mar 2005
Location: Large scale systems...
Posts: 2,609
code your linked list program module wise

first code for inserting
test it ... deliberately test insertion alone

and then proceed with next module..
test it

this will give you a point to look into the problem and find out easily...
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 01:57 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0