Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!uwm.edu!ux1.cso.uiuc.edu!ux1.cso.uiuc.edu!uxa.cso.uiuc.edu!ews00461 From: ews00461@uxa.cso.uiuc.edu Newsgroups: comp.sys.mac.programmer Subject: Re: Memory problems, MaxMem dive Message-ID: <1234600026@uxa.cso.uiuc.edu> Date: 6 Mar 90 01:42:25 GMT References: <1234600025@uxa.cso.uiuc.edu> Lines: 24 Nf-ID: #R:uxa.cso.uiuc.edu:1234600025:uxa.cso.uiuc.edu:1234600026:000:871 Nf-From: uxa.cso.uiuc.edu!ews00461 Mar 5 11:29:00 1990 In response to my own note... Two wise persons have mailed me to tell me of the problems with TextEdit and the growing textedit records/linestarts array. Sure enough, the handlesize of the textedit record in question is growing 16 bytes for every insertion of 8 lines, as expected by a corresponding change in the linestarts array. So, I speculate that the cause of the program locking up is: When TransEdit calls TECalText, it attempts to SetHandleSize(), cannot find the necessary memory and hangs (or my program does not check some error condition and it is my fault it hangs). I am not intimately familiar with SetHandleSize(), but it seems that I may be able to place the TextRec in high memory or something like that to avoid this problem... Any further comments/suggestions ? Thanks very much! Eric W Sink University of Illinois ews00461@uxa.cso.uiuc.edu