Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!pt.cs.cmu.edu!k.gp.cs.cmu.edu!jong From: jong@k.gp.cs.cmu.edu (Jon Gotow) Newsgroups: comp.sys.mac.programmer Subject: Alerts sucking up memory? Keywords: alert,memory usage,dialog manager Message-ID: <6525@pt.cs.cmu.edu> Date: 15 Oct 89 04:57:49 GMT Organization: Carnegie-Mellon University, CS/RI Lines: 18 I've got a cdev I've been working on that's exhibiting a strange problem. When certain error conditions occur, I put up an alert box using StopAlert(). Big deal, right? Well, I seem to be losing about 8K of memory every time I do this, based on observations I made with MemoryEater (if you're not familiar with it, Memory Eater is a program that simply allocates memory and displays how much is left - it's useful for testing DA's and cdev's for correct behavior in low memory conditions). I'm exiting correctly from the code where the error occurs - ie. I'm not leaving any of my data structures allocated when I shouldn't. Is there something I'm missing? All my error function does is call ParamText and StopAlert. Any pointers would be greatly appreciated! If it's not something immediately obvious, I'll follow up with actual code. Thanks in advance, Jon Gotow jong@k.gp.cs.cmu.edu