I am using malloc to allocation memory for a group of structures. I am
not using a whole lot of memory.
But my program can run without a problem on a machine with 2GB RAM, but
with a machine less than 1GB memory, it fails to allocate memory.
What are the reasons the system cannot allocate memory? How can I fix
this problem?
( when the program starts, I am only using about 40MB memory which is
not a whole lot)
Please help me if you have any ideas
not using a whole lot of memory.
But my program can run without a problem on a machine with 2GB RAM, but
with a machine less than 1GB memory, it fails to allocate memory.
What are the reasons the system cannot allocate memory? How can I fix
this problem?
( when the program starts, I am only using about 40MB memory which is
not a whole lot)
Please help me if you have any ideas
Comment