Xref: utzoo comp.lang.c:31341 comp.sys.mac.programmer:17021 Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!usenet.ins.cwru.edu!tut.cis.ohio-state.edu!uccba!mead!mead.UUCP From: rubin@mead.UUCP (Daniel Rubin) Newsgroups: comp.lang.c,comp.sys.mac.programmer Subject: Help --- Starting to learn Think C Message-ID: <1216@meaddata.mead.UUCP> Date: 24 Aug 90 13:28:49 GMT Sender: usenet@mead.UUCP Reply-To: mead!rubin@uccba.uc.edu Followup-To: comp.lang.c Organization: Mead Data Central, Dayton OH Lines: 23 I just purchased Think C by Symantec and the Macintosh C Programming Primers Volumes I and II by Dave Mark. As I was typing in the sample second sample program ( Anyone who has read the Macintosh programming primer Vol I may be familiar with it - the one call "Hello2" ) which uses the Macintosh ToolBox to create a window and write the words "Hello, World" in it and then wait for a mouse button to close the window and quit. Well here is my problem, I typed the program in and then pulled in MacTraps and ran the stupid thing. It seemed to compile without any errors but when it started to run I got a system bomb message with an error code ID of 2 ( in some manual I found out the an error code ID of 2 means that there was an address error ???? ). I checked my code again and then tried to run it with the debugger on. It displayed the same system error message before any debugging messages came up ? Does anybody out there know just what an system error code of 2 exactly means and how it related to trying to open a Macintosh window using the ToolBox ?? OOOO, by the way yes I did create a WIND resource first and checked it several time to make sure it was correct....also I am using a Mac Plus w/1 Meg and a Third Wave 45meg external hard drive. p.s. Any help would be greatly appreciated..... Please send email since I don't keep up with these newsgroups. email - mead!rubin@uccba.uc.edu Thanks in Advance - Dan Rubin