Path: utzoo!mnetor!uunet!lll-winken!lll-tis!ames!pasteur!ucbvax!POMONA.BITNET!0ALEVI From: 0ALEVI@POMONA.BITNET Newsgroups: comp.sys.atari.st Subject: BITNET mail follows Message-ID: <8804200802.AA03159@ucbvax.Berkeley.EDU> Date: 20 Apr 88 03:51:00 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 28 Date: 19 April 1988, 19:50:32 PST From: 0ALEVI at POMONA To: INFO-ATARI16 at SCORE.STANFORD.EDU Bill writes:(Bill Rosenkranz) >Mshrink is a gemdos call that returns memory to the operating system. a far >as i know, when you double-click (or otherwise start a program) it take >ALL available memory for itself. since rsrc_load needs to allocat space >(using a Malloc call, probably the gemdos version NOT the gemlib malloc, >there is none available and it would probably bomb. this is why the alcon >startup file GEMSTART.S does the Mshrink almost as soon as the program tarts. >the gemstart module is the first thing that executes when your program tarts >and eventually calls your "main" function. i don't know how lattice >works but it probably does something similar. check your docs to see if >they mention something about linking and a certain object that has to b >first. you should probably solicit a response from lattice hackers. ************************************************************************ Bill, What you said makes perfect sense. I even think it will help! But,... what are the two parameters to the Mshrink(a,b) call? Do you know? Are these universal to all compilers? Does the function return a value (such as an error code)? I know I have been asking quite a few questions, but maybe I'll be answering questions someday. Thanks for everything! Sincerely, Alan Levi ******ANY COMMENTS FROM THE PEANUT GALLERY ARE WELCOME!!!************