Technote PT 06 | January 1987 |
The MPW Pascal compiler must see some declaration of an object in order to produce a reference to the magic segment. You can achieve this cheaply by simply including ObjIntf.p in your Uses declaration. This must be in the main program, by the way. The compiler will produce a call to %_InitObj which is in %_MethTables.
If you're a more adventurous soul, you can call %_InitObj explicitly
from the initialization section of your main program (you must use the
{$%+} compiler directive to allow the use of "%" in
identifiers). This will load the %_MethTables segment. See Technical
Note #93 for ideas about locking down segments that are needed forever without
fragmenting the heap.
Further Reference: