Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!wuarchive!hsdndev!bunny!bunny.gte.com!CAH0 From: CAH0@bunny.gte.com (Chuck Hoffman) Newsgroups: comp.sys.mac.programmer Subject: Re: Help with Mac Prog. Primer program Message-ID: <11098@bunny.GTE.COM> Date: 30 Apr 91 11:50:25 GMT References: <1991Apr29.234725.2317@ncsu.edu> Sender: news@gte.com Organization: GTE Laboratories, Inc. Lines: 29 The original query asked for response by e-mail. I'm posting it here also for general interest. In article <1991Apr29.234725.2317@ncsu.edu> paisley@ccvr1.cc.ncsu.edu (Mike Paisley) writes: > As a new Mac programmer I was working through some of the demo programs in the > book "Macintosh Programming Primer" by Dave Mark and Cartwright Reed. I did all > the necessaries in setting up the "Timer" program from Chapter 5, but it dies. > Running the debugger reveals a bus error when it tries to execute the line > > AddResMenu(gFontMenu,'FONT'); > > in the MenuBarInit routine. I'm not familiar with the text you mention, but your code line looks 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 this is true. Chuck Hoffman, GTE Laboratories, Inc. | I'm not sure why we're here, cah0@bunny.gte.com | but I am sure that while we're Telephone (U.S.A.) 617-466-2131 | here, we're supposed to help GTE VoiceNet: 679-2131 | each other. GTE Telemail: C.HOFFMAN |