I am executing Proc code in unix server, the proc will read the record from file and store the data in array of structure and after some processing it will produce the output. When i read 368700 records from the file and process in the code means its executing fine. but when i try to read 370000 records from the file and process means, I am getting an error saying ORA-12533: TNS:illegal ADDRESS parameters and illegal address
. What could be the cause and possible solution for this error?
I've done memory allocation like below:
int unsigned long size=(atoi(argv[2]))+1;
printf("\nthe size is %lu",size);
printf("\n am here 1");
what_if_var =(what_if*)malloc((size)*sizeof(what_if));
temp_var =(what_if*)malloc((size)*sizeof(what_if));