Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C Programming > question about memory shortage

Reply
Thread Tools

question about memory shortage

 
 
Chang Byun
Guest
Posts: n/a
 
      10-14-2003
I have question about memory allocation.

I have a trouble when I run a C program.
My C program has several big double pointer(** var) variables to
structure data like 4 by 5000000.
It is supposed to calculate those varibles with different parameters
repeatedly with same size of variables.
When it is running, the first several run is fine
But it uses more and more memory, is used up all the main memory
and swap memory and is stop.
I am pretty sure that I free every variable for each run using free().

My questions are,

1. if the process needs more memory space even though every
variables are released with free().
2. How can I check if there is memory leak?
3. Would it be better if big variables breaks down to smaller size
variables.

Any seggestions and helps would be very appreciated.

Thanks,

Chang Byun

 
Reply With Quote
 
 
 
Reply

Thread Tools

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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Stock Shortage of SPA3000 Mark UK VOIP 28 10-24-2006 09:04 AM
whats with the cisco 1801 shortage? RobR Cisco 4 12-01-2005 10:46 PM
Shortage of qualified Java programmers eglato Java 117 06-24-2005 06:43 PM
question about memory shortage Chang Byun C Programming 4 10-14-2003 06:15 PM
memory shortage Chang Byun C Programming 1 10-14-2003 11:56 AM



Advertisments