Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sdd.hp.com!cs.utexas.edu!sun-barr!lll-winken!taco!news From: paisley@ccvr1.cc.ncsu.edu (Mike Paisley) Newsgroups: comp.sys.mac.programmer Subject: Help with Mac Prog. Primer program Message-ID: <1991Apr29.234725.2317@ncsu.edu> Date: 29 Apr 91 23:47:25 GMT Sender: news@ncsu.edu (USENET News System) Organization: Mat. Sci. & Eng., NCSU Lines: 19 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 rechecked all the created resources and everything appears to be fine, from what is shown in the book. gFontMenu is a global variable declared as a MenuHandle. If I comment out this line, the program works just fine, though it doesn't show any fonts (of course) or styles (not sure why on this one). I feel like it is just a problem of syntax of the call, but I don't have my copy of Inside Mac yet, so I'm at a loss. Anyone tried this beastie and seen this problem? Please reply directly to me, as I don't read this newsgroup. (Not quite up to it yet!) I will post the answer if there is some interest. Thanks. Mike Paisley paisley@ccvr1.cc.ncsu.edu PAISLEY@NCSUMTE.BITNET