Im running the following sample code under ubuntu 13.04 64bit having 16 GB mem installed using intel compiler 14 toolchain.
Im having an issue regarding the system("do something bashy..") wont work after my application allocting at a certein point. After fighting the problem for a few hours i came to realise that the fact i allocate 8GB worth of memory at that certain point does not allow me to use system() command any further.
Needless to say, that befor i allocate that memory, i can use system freely.
Code snippet:
#include <string.h>
#include <iostream>
#include "stdlib.h"
int main() {
char ** buffer = new char*[100];
system("logger TRYING..!");
for(int i= 1; i<=80; i++)
{
buffer[i] = new char[200*1000*1000];
}
system("logger SUCCESS..!");
return 0;
}
Thanks for the help..!