Path: utzoo!yunexus!ists!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!swrinde!gem.mps.ohio-state.edu!ctrsol!lll-winken!decwrl!shelby!lindy!news From: LC.YRS@forsythe.stanford.edu (Richard Stanton) Newsgroups: comp.sys.ibm.pc Subject: Arrays > 64k revisited Message-ID: <5860@lindy.Stanford.EDU> Date: 17 Nov 89 20:11:22 GMT Article-I.D.: lindy.5860 Sender: news@lindy.Stanford.EDU (News Service) Lines: 22 SOmeone suggested that the Quick C malloc function would work with arrays > 64k in the huge model. I wrote a simple test program to try this, using either halloc/hfree or malloc/free to allocate 100000 bytes, fill them with ASCII 0, write the contents of the array to disk, then free the storage. THe program worked fine using halloc. Using malloc, the allocation seemed to go OK (NULL was not returned), but when the program ended, I had to reboot as everything I tried to do produced a message saying I was out of memory. I looked in my manual, but it seemed less than informative. Does anyone know the answer? Must you use halloc, or should malloc work? If the latter, is there a bug in the free function? Thanks Richard Stanton pstanton@gsb-what.stanford.edu