Re: Linked List & Dynamic Memory Allocation
- From: one-trick-pony <worldofpain.aamir@xxxxxxxxx>
- Date: Tue, 28 Aug 2007 06:44:53 -0700
Greetings,
I have everything working now. Thanks for your tips, suggestions and
guidance. I have better understanding of how programs relate to stack
and heap. I have created a singly linked list with dynamic memory
allocation enabled. Next task is doubly linked list but I've got a
good handle on that. One last question with this topic is, what
happens when memory allocated with malloc is not freed with free? I
am not seeing an immediate disaster when I deliberately leave out call
to free. And with every new record/item for which memory is allocated
do I need to call free( ) for every single memory allocation call or
just once? Thanks.
.
- Follow-Ups:
- Re: Linked List & Dynamic Memory Allocation
- From: Joseph M . Newcomer
- Re: Linked List & Dynamic Memory Allocation
- From: Scott McPhillips [MVP]
- Re: Linked List & Dynamic Memory Allocation
- References:
- Linked List & Dynamic Memory Allocation
- From: one-trick-pony
- Re: Linked List & Dynamic Memory Allocation
- From: Jonathan Wood
- Re: Linked List & Dynamic Memory Allocation
- From: one-trick-pony
- Re: Linked List & Dynamic Memory Allocation
- From: Dan Bloomquist
- Re: Linked List & Dynamic Memory Allocation
- From: one-trick-pony
- Re: Linked List & Dynamic Memory Allocation
- From: Dan Bloomquist
- Re: Linked List & Dynamic Memory Allocation
- From: one-trick-pony
- Re: Linked List & Dynamic Memory Allocation
- From: Nobody
- Re: Linked List & Dynamic Memory Allocation
- From: Joseph M . Newcomer
- Linked List & Dynamic Memory Allocation
- Prev by Date: Re: CAsyncSocket's Send and Receive
- Next by Date: Re: How to convert CString to BYTE pointer.
- Previous by thread: Re: Linked List & Dynamic Memory Allocation
- Next by thread: Re: Linked List & Dynamic Memory Allocation
- Index(es):
Relevant Pages
|