Then you shouldn't need any fancy memory setup.There is no code other than some window initialisation, no recursion or anything else.
Use MacsBug to check the heap layout?
Did you quit Think C before running your app?
What does the Get Info window in the Finder show for your app?
What does the SIZE resource look like?
Did you try using malloc instead of NewPtr?
Definitely not. You're using printf in Think C which makes its own windows.Oh, you mean NewPtr should be called before InitGraf?
Did you check the C compiler options in Code Warrior Pro 8 (or Code Warrior Pro 6 since you want to generate 68K code).By the way, is there a compiler that supports the C99 standard on a classic Mac? Declaring variables at the beginning is very cumbersome.
Code Warrior Pro 6 mentions c99 in some source files but not the documentation.
Code Warrior Pro 7 mentions c99 in the documentation.
Those won't work on a 4MB Mac though.
Consider programming on a Power Mac and testing on the older Mac. But in that case, you might as well try Retro68 on a modern Mac or Linux.







