Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!sdd.hp.com!think.com!snorkelwacker.mit.edu!bloom-beacon!eru!hagbard!sunic!kth.se!cyklop.nada.kth.se!news From: d88-jwa@byse.nada.kth.se (Jon W{tte) Newsgroups: comp.sys.mac.programmer Subject: Re: Help with Mac Prog. Primer program Message-ID: Date: 30 Apr 91 18:48:05 GMT References: <1991Apr29.234725.2317@ncsu.edu> <11098@bunny.GTE.COM> Sender: news@nada.kth.se (Mr News) Organization: Royal Institute of Technology, Stockholm, Sweden Lines: 15 In-reply-to: CAH0@bunny.gte.com's message of 30 Apr 91 11:50:25 GMT In article <11098@bunny.GTE.COM> CAH0@bunny.gte.com (Chuck Hoffman) writes: > Running the debugger reveals a bus error when it tries to execute the > AddResMenu(gFontMenu,'FONT'); exactly like some of mine. The handle gFontMenu has to be properly initialized, such as with GetMenu. Check it with your debugger to see if Remember; if you call GetNewMBar to load a MBAR resource, you shouldn't call GetMenu but GetMenuHandle. There is a distinction ! -- Jon W{tte h+@nada.kth.se - Power !