Path: utzoo!attcan!uunet!lll-winken!ncis.llnl.gov!ncis!helios.ee.lbl.gov!nosc!ucsd!orion.cf.uci.edu!elroy!cit-vax!tybalt.caltech.edu!janin From: janin@tybalt.caltech.edu (Adam L. Janin) Newsgroups: comp.sys.mac.programmer Subject: Allocating large amounts of memory Message-ID: <9154@cit-vax.Caltech.Edu> Date: 19 Jan 89 04:18:41 GMT Sender: news@cit-vax.Caltech.Edu Reply-To: janin@tybalt.caltech.edu (Adam L. Janin) Organization: California Institute of Technology Lines: 14 I am having a problem allocating large amounts of memory in LightSpeed C. I want to allocate a relocatable block which is larger than 32k. I get out of memory errors when I try. Calling MaxMem indicates that I have over 200k free and that my largest block is over 100k in size. I am using LightSpeed C 3.0, system 6.0.2, on a Mac II with 2 Meg of memory, multifinder, and several INITs. Anyone know what causes the 32k limit? The memory manager says that the size of a block is limited only to availible memory, and all numbers appear to be longs, although the 32k size appears to be related to the size of a signed int. Any help would be appreciated, Adam Janin janin@csvax.caltech.edu or janin@cgl.ucsf.edu