Path: utzoo!utgpu!water!watmath!clyde!bellcore!faline!thumper!ulysses!ucbvax!agate!thoth4.berkeley.edu!jmm From: jmm@thoth4.berkeley.edu Newsgroups: comp.sys.mac.programmer Subject: Need help with Lightspeed C Message-ID: <10180@agate.BERKELEY.EDU> Date: 21 May 88 01:57:05 GMT Sender: usenet@agate.BERKELEY.EDU Reply-To: jmm@thoth4.berkeley.edu () Distribution: na Organization: Ollscoil na California ag Berkeley, Roinn Leann Ceilteach Lines: 41 Can someone please tell me what version of LSC I should be using on a Mac + (and what system should go along with it). Right now I'm using 2.11, and I'm getting very strange bugs in places where I can't figure out what's wrong. As I always write perfect code :-), I must be using the wrong version of the compiler. This is what my code looks like right now: /* Initialize the managers - this is lifted verbatim from TransSkel */ MaxApplZone(); FlushEvents (everyEvent - diskMask,0); InitGraf(&thePort); InitFonts; InitWindows(); InitMenus(); TEInit(); InitDialogs(nil); InitCursor(); /* then call my menu setup procedure... */ /*I have checked to make sure that the resource file is in the same folder as the project file, and that the resource is correctly numbered in the .rsrc file. The MBAR resource is simply three menus, numbered 1, 2, 3. */ /* attempt to set up the menu bar */ menuSetup () { handle mHandle; mHandle=GetNewMBar(1); /* It gets this far and then dies somewhere in never-never land with an address error. This is the first statement in the procedure. */ /* more code here.... */ Last but not least, any word on 3.0 and the symbolic debugger? James Moore | B'fhearr don net mura mbeadh jmm@bartleby.berkeley.edu | Bearla ar bith ann. #airigh "leithsceal caighdeanach" | :-)