Macintosh II: MacFortran Error When Making "New Palette" Calls


Some users have experienced a problem using Absoft's MacFortran on the
Macintosh II:

The software includes a sample Fortran routine for addressing the palette
manager (Call to New Palette). When running the routine on a Macintosh II
WITHOUT expanded video memory, the routine will return a proper handle.

However, when run on a Macintosh II with expanded video memory, a null
handle may be returned (even when set for 16 colors). Addressing the
resource file with Get New Palette has the same results.

One possible solution is increasing the application stack size. If you have
a default of 24K, it may be too small for creating your own palette to
handle the additional colors. An example program demonstrating how to
increase the application stack size is shipped with MacFortran.

Also, if you are running your program under MultiFinder, try increasing
the program size (Select Program, then choose Get Info from File menu).
The default setting is approximately 385K; you might increase this to 512K
or more (depending on your program requirements, and how much RAM you have
in your system).

Published Date: Feb 18, 2012