C
Chang Byun
hello,
I have a trouble when I run a C program.
It have several big pointer variables like 4 by 5000000.
The program is supposed to calculate that big variables with
different parameters repeatedly.
When process run several times, the first serveral runs are fine but
all the memory(main memory and swap memeory) is out of and
it is stop finally.
I am pretty sure that I free every variables for a each run.
My questions are,
1. if the process is needs more memory even though the variables
have been released with free()
2. what is the best way to manage memory
3. is it better to break down a big variables into smaller variables
and run more
4. if there is memory leak, how can I find it?
Any suggestion and helps would be appreciated.
Thanks,
Chang
I have a trouble when I run a C program.
It have several big pointer variables like 4 by 5000000.
The program is supposed to calculate that big variables with
different parameters repeatedly.
When process run several times, the first serveral runs are fine but
all the memory(main memory and swap memeory) is out of and
it is stop finally.
I am pretty sure that I free every variables for a each run.
My questions are,
1. if the process is needs more memory even though the variables
have been released with free()
2. what is the best way to manage memory
3. is it better to break down a big variables into smaller variables
and run more
4. if there is memory leak, how can I find it?
Any suggestion and helps would be appreciated.
Thanks,
Chang