memory problem

George Andreadakis Andreadakis.Georgios at mayo.edu
Thu Oct 12 22:59:24 EEST 2000


Gia sas!

Exo ayto to programa:



#define LIM 128000000*4

main()
{
        int i;
	
	static int mypntr[LIM];
	
	for ( i=1 ; i < (LIM-10); i++)   {
	
		mypntr[i]=100;
	}
}



exo sto board 2Gb memory.

Otan bgazo to 'static' doyleyei mia xara alios kanei Segmentation fault.

Me to static me afinei mono 128M int aray.

Mporei na me forisei kapios giati?

--
linux-greek-users mailing list -- http://lists.hellug.gr




More information about the Linux-greek-users mailing list