very sorry: please help me....
borland c 3.1
os: windows xp
a dos program
sorry about not giving the information earlier...
here is a simple code that i tried that fails at the allocation part because of low memory....
the resulution is 640,480;
void main()
{
graphics(); //calls initgraph
openscr(); //draws an image on screen
unsigned int picsize;
void *pic;
picsize=imagesize(0,0,400,400);
pic=malloc (picsize);
if (!pic) printf ("memory error");
getimage (0,0,400,400);
cleardevice();
setbkcolor(0);
getch();
putimage (0,0,pic,XOR_PUT);
getch();
free (pic);
}
it succeed to allocate 300*300 but not a larger part of screen such as 400*400;