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 05:35 AM
Managing nodes??? TRUEST UNIX for Advanced & Expert Users 5 03-21-2003 05:47 AM
best solution for managing many nameservers Bashar UNIX for Advanced & Expert Users 1 01-07-2003 03:32 PM
C++ Problem, managing >2Gb file ASOliveira High Level Programming 4 08-29-2002 03:39 PM
managing users SmartJuniorUnix UNIX for Dummies Questions & Answers 4 09-20-2000 03:34 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 05-11-2006
bhakti_2025 bhakti_2025 is offline
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
  #2 (permalink)  
Old 05-11-2006
Corona688 Corona688 is offline
Registered User
  
 

Join Date: Aug 2005
Location: Saskatchewan
Posts: 1,960
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 (permalink)  
Old 05-16-2006
grumpf grumpf is offline
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.
  #4 (permalink)  
Old 05-17-2006
matrixmadhan matrixmadhan is offline Forum Advisor  
Technorati Master
  
 

Join Date: Mar 2005
Location: leaf node in B+ tree
Posts: 2,957
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...
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 02:28 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0