Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!ames!dftsrv!kong.gsfc.nasa.gov!rdominy From: rdominy@kong.gsfc.nasa.gov (Robert Dominy) Newsgroups: comp.sys.mac.programmer Subject: MacApp memory mgmt with Callbacks Message-ID: <4637@dftsrv.gsfc.nasa.gov> Date: 27 Mar 91 14:51:06 GMT Sender: news@dftsrv.gsfc.nasa.gov Distribution: world Organization: NASA Goddard Space Flight Center Lines: 18 I'm having trouble with using callback/completion routines for MacTCP under MacApp. It seems that under the MacApp memory management, it is possible that the segment in which my callback routines are defined can be periodically unloaded. This of course kills the program if any such routine is invoked. What is the proper way of telling MacApp that a Code seqment should be resident in memory and should not be unloaded? I tried defining my own 'seg!' resource as described in the reference manual, but this did not seem to help. I was able to define the callback routines as being in one of MacApp's resident segments (GDebug) which seemed to work. Thanks.... ------------------------------- Robert Dominy NASA Goddard Space Flight Center