Path: utzoo!news-server.csri.toronto.edu!rutgers!usc!snorkelwacker.mit.edu!stanford.edu!eos!data.nas.nasa.gov!xenon.arc.nasa.gov!dueker From: dueker@xenon.arc.nasa.gov (The Code Slinger) Newsgroups: comp.sys.amiga.programmer Subject: Re: The case of the vanishing memory Summary: Intuimessage memory gobbling Message-ID: <1991Mar12.162300.12116@nas.nasa.gov> Date: 12 Mar 91 16:12:35 GMT References: <1991Mar12.070655.1515@zorch.SF-Bay.ORG> Sender: dueker@xenon.arc.nasa.gov Reply-To: dueker@xenon.arc.nasa.gov Followup-To: comp.sys.amiga.programmer Organization: A peon @ Computer Sciences Corp Lines: 39 News-Software: VAX/VMS VNEWS 1.3-4 In article <1991Mar12.070655.1515@zorch.SF-Bay.ORG>, mike@zorch.SF-Bay.ORG (Mike Smithwick) writes... > >I have noticed that when I open a window, then procede to create an event in > said window (MOUSEMOVE, clicking on a gadget, etc), sometimes I'll >loose 56 bytes, sometimes. > >Ok, so I assume that this is my IntuiMessage (52 bytes + 4 bytes overhead?). >But it is not consistant. It only happens early in the window's life. I can >generate events like crazy, but after a while, the memory loss will stop. > >This is very sporadic, and the events that appear to be eating away at >the memory still get through for me to process and reply to. So its not >like I am ignoring them or anything, but it does seem to have something >to do with how quickly I can get to process them. > >This only happens on my slow (read 68000) machines. On my 020 A1000 and >A3000 it doesn't happen. > >So anybody have any idears? > >mike If'n Ah remember rightly, one of the Sybex books (Peck's?) sez something about memory being allocated by the system when IntuiMessages are created and that you should reply to them as fast as you can. Because, when you reply, the system can reuse the space for another IntuiMessage. If'n you don't reply "fast enough", the system will allocate still more space for messages it needs to send. This space does not get deallocated. (At least not until reboot time, I think) Chris ------------------------------------------------------------------------ "Ah, Benson, you are so mercifully free of the ravages of intellegence!" "Oh, thank you, Master!" - from the movie, TIME BANDITS ------------------------------------------------------------------------ dueker@xenon.arc.nasa.gov | Chris Dueker (The Code Slinger) duke@well.sf.ca.us | Mtn. View, CA (Sillycon Valley!)