Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!att!cbnewsk!ech From: ech@cbnewsk.ATT.COM (ned.horvath) Newsgroups: comp.sys.mac.programmer Subject: Re: Alerts sucking up memory? Message-ID: <1211@cbnewsk.ATT.COM> Date: 16 Oct 89 17:07:52 GMT References: <6525@pt.cs.cmu.edu> Organization: AT&T Bell Laboratories Lines: 19 From article <6525@pt.cs.cmu.edu>, by jong@k.gp.cs.cmu.edu (Jon Gotow): > 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... Have you installed a color icon (cicn), in your System File or application for the "hand" icon (the one displayed by StopAlert)? There is a bug in the Dialog Manager that causes it to use PlotCIcon incorrectly and leave an 8K of unreferenced memory in the heap. I reported this one to MacDTS over a year ago, but haven't gone back to see if it's been fixed in 6.0.x (it's never appeared in any "Fixed Bugs" list I've seen). If someone at MacDTS wants to follow up, Paul Mercer responded to my original mail message, acknowledging that he'd reproduced the bug... Meantime the workarounds are obvious: use plain Alert(), or rip the cicn out. =Ned Horvath=