Path: utzoo!utgpu!water!watmath!clyde!rutgers!rochester!PT.CS.CMU.EDU!cadre!km From: km@cadre.dsl.PITTSBURGH.EDU (Ken Mitchum) Newsgroups: comp.sys.mac Subject: Re: LSC, Mac limitations? Keywords: 32K limit, dynamic memory alloc. Message-ID: <981@cadre.dsl.PITTSBURGH.EDU> Date: 11 Feb 88 23:48:15 GMT References: <1161@hao.ucar.edu> Reply-To: km@cadre.dsl.pittsburgh.edu.UUCP (Ken Mitchum) Organization: Decision Systems Lab., Univ. of Pittsburgh, PA. Lines: 14 In article <1161@hao.ucar.edu> bill@hao.ucar.edu (Bill Roberts) writes: >segment larger than 32K and my array of pointers, for a window that is 250 X 250pixels, is much larger than 32K (62500 to be exact.) You can allocate space for a larger array, but you must do at at runtime, using malloc() or other allocation functions. The total static variable space cannot exceed 32K. This is a Mac limitation, not one of LSC. >LSC acts as though it doesn't recognize the NULL (0L). Is it the case that I >have to explicitly set the last node's next pointer to 0L? If the node was allocated statically, the fields should be set to zero. If it was allocated on the stack, or through a call such as malloc(), it will contain garbage. Try calloc(), or set the field yourself.