[comp.lang.c] Help --- Starting to learn Think C

rubin@mead.UUCP (Daniel Rubin) (08/24/90)

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