Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!dali.cs.montana.edu!uakari.primate.wisc.edu!samsung!uunet!world!barry From: barry@world.std.com (Barry L Wolman) Newsgroups: comp.sys.mac.programmer Subject: DisposeMenu vs. ReleaseResource Summary: What's the difference between DisposeMenu and ReleaseResource Keywords: mac, programming, toolbox, menu, resource Message-ID: <1991May1.005649.27669@world.std.com> Date: 1 May 91 00:56:49 GMT Organization: The World Public Access UNIX, Brookline, MA Lines: 19 I'm incorporating some code written by someone else into a project I'm doing. That code assumes that it can use DisposeMenu when it's through with a menu. However, many of the menus with which it will deal will have been read from the resource file. Inside Mac says to use ReleaseResource to get rid of menus read from resource files and to use DisposeMenu for menus created by NewMenu. IM doesn't say what happens if you call DisposeMenu on a menu read from a resource file. Should I add some code to check what type of menu is involved and make the appropriate call? What (bad?) happens if I just let it always call DisposeMenu. Thanks, Barry -- Barry Wolman 159 Oxbow Road Needham, MA 02192 617-449-3874