![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
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 |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
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.
|
|
#3
|
|||
|
|||
|
the glibc comes with some handy macros for linked lists in queue.h. see also 'man queue' for
examples who to use them propperly. |
|
#4
|
|||
|
|||
|
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... |
|||
| Google The UNIX and Linux Forums |