CRE Programmer's Guide
Contents
Common Run-Time Environment (CRE) Programmer’s Guide—528146-004
ii
2. CRE Services (continued)
2. CRE Services (continued)
Program Initialization (continued)
Native CRE Initialization 2-13
Initialization Errors 2-14
Initializing the TNS CRE From TAL 2-15
Initializing the Native CRE From pTAL 2-15
Program Termination 2-15
CRE_Terminator_ Procedure 2-16
Handling Error Conditions in CRE_Terminator_ 2-16
Sharing Standard Files 2-17
Sharing Standard Files Without Using the CRE 2-17
Sharing Standard Files Using the CRE 2-18
Using CRE Functions to Access the Standard Files 2-27
Determining When Standard Files Are Opened 2-28
Using Terminals and Process 2-28
Program Startup Message 2-28
Standard Input 2-29
Standard Output 2-31
Standard Log 2-33
Using $RECEIVE 2-34
$RECEIVE and Program Initialization 2-35
Messages Received From $RECEIVE 2-35
$RECEIVE and the Languages Supported by the CRE 2-35
Using a Spooler Collector 2-36
Memory Organization 2-37
TNS CRE Memory 2-37
Native CRE Memory 2-41
Using the Native Heap Managers 2-43
Undetected Logic Errors Can Exist in Code that Uses the Original Heap
Manager 2-44
Using the Overwrite Feature to Detect Logic Errors 2-44
Using the Programmatic Heap-Management Attributes 2-45
TNS CRE Traps and Exceptions 2-47
Errors in Program Logic 2-48
Hardware Traps 2-49
Catastrophic Errors 2-49
TNS CRE Trap Handler 2-50
Using ARMTRAP 2-51
Writing Messages to Standard Log 2-51