Microsoft C V5.1 halloc() problem.

H Bruce elee24 at castle.ed.ac.uk
Fri Aug 3 00:46:16 AEST 1990


I have written a C program using the large model
which when compiled is about 34K in size.

I want to allocate space for a huge array of just over 133K (33K long ints)
but halloc() returns a NULL. I am specifiying the size of the array element to
be sizeof(long) (a power of 2). What is going wrong ?

The total memory requirement would appear to be 64K for the program and
about 3*64K for the data but DOS say I have 530K free.

Thanks,

Henry Bruce.



More information about the Comp.lang.c mailing list