home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1989-09-14 | 4.6 KB | [TEXT/KAHL] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
Confidence | Program | Detection | Match Type | Support
|
---|
66%
| dexvert
| AMOS Picture Packer (image/amosPicturePacker)
| ext
| Supported |
1%
| dexvert
| Debian floppy split (archive/debianFloppySplit)
| ext
| Unsupported |
1%
| dexvert
| Sound Images sound sample (audio/soundImagesSoundSample)
| ext
| Unsupported |
1%
| dexvert
| DESI-III drawing (image/desiIIIDrawing)
| ext
| Unsupported |
1%
| dexvert
| MS-DOS PMODE extender executable (executable/msdosPMODEExtenderExecutable)
| ext
| Unsupported |
1%
| dexvert
| Alien Trilogytextures (other/alienTrilogyTextures)
| ext
| Unsupported |
1%
| dexvert
| APT cache data (other/aptCacheData)
| ext
| Unsupported |
1%
| dexvert
| CorelTRACE configuration (other/corelTRACEConfiguration)
| ext
| Unsupported |
1%
| dexvert
| Dreamcast Disc (other/dreamcastDisc)
| ext
| Unsupported |
1%
| dexvert
| EST flat binary (other/estFlatBinary)
| ext
| Unsupported |
1%
| dexvert
| Finale Enigma Binary Format (other/finaleEnigmaBinaryFormat)
| ext
| Unsupported |
1%
| dexvert
| Sega Genesis/Megadrive/32x ROM (other/genesisROM)
| ext
| Unsupported |
1%
| dexvert
| Myth: The Fallen Lords game archive (other/mythTheFallenLordsGameArchive)
| ext
| Unsupported |
1%
| dexvert
| Sound Images Sound Driver (other/soundImagesSoundDriver)
| ext
| Unsupported |
1%
| dexvert
| Symantec/Norton Config (other/symantecNortonConfig)
| ext
| Unsupported |
1%
| dexvert
| Vectrex ROM (other/vectrexROM)
| ext
| Unsupported |
1%
| dexvert
| BIS raP encoded format (other/bisraPEncoded)
| ext
| Unsupported |
1%
| dexvert
| Pascal Script binary (other/pascalScriptBinary)
| ext
| Unsupported |
1%
| dexvert
| 7th Level game data archive (other/seventhLevelGameDataArchive)
| ext
| Unsupported |
1%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Binary Text (image/binaryText)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary, Mon Jan 16 11:37:23 1989, modified Mon Jan 16 11:56:53 1989, creator Think C, type ASCII, 4602 bytes "IMPORTANT - READ THIS!"
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 1
| default (weak)
| |
100%
| lsar
| MacBinary
| default
| |
100%
| gt2
| MAC Bilddatei
| default (weak)
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [KAHL] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 16 49 4d 50 4f 52 54 | 41 4e 54 20 2d 20 52 45 |..IMPORT|ANT - RE|
|00000010| 41 44 20 54 48 49 53 21 | 00 00 00 00 00 00 00 00 |AD THIS!|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4b 41 48 | 4c 00 00 00 00 00 00 00 |.TEXTKAH|L.......|
|00000050| 00 00 00 00 00 11 fa 00 | 00 00 00 9f f7 ca c3 9f |........|........|
|00000060| f7 cf 55 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |..U.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000080| 0d 43 68 61 6e 67 65 20 | 69 6e 20 45 78 69 74 20 |.Change |in Exit |
|00000090| 48 61 6e 64 6c 69 6e 67 | 0d 31 2f 31 36 2f 38 39 |Handling|.1/16/89|
|000000a0| 0d 0d 49 74 20 69 73 20 | 49 4d 50 45 52 41 54 49 |..It is |IMPERATI|
|000000b0| 56 45 20 74 68 61 74 20 | 79 6f 75 20 61 70 70 6c |VE that |you appl|
|000000c0| 79 20 74 68 65 20 6c 69 | 62 72 61 72 79 20 63 68 |y the li|brary ch|
|000000d0| 61 6e 67 65 73 2c 20 69 | 6e 63 6c 75 64 65 64 20 |anges, i|ncluded |
|000000e0| 69 6e 20 74 68 69 73 0d | 70 61 63 6b 61 67 65 2c |in this.|package,|
|000000f0| 20 77 68 65 6e 20 79 6f | 75 20 61 70 70 6c 79 20 | when yo|u apply |
|00000100| 74 68 65 20 33 2e 30 31 | 70 34 20 70 61 74 63 68 |the 3.01|p4 patch|
|00000110| 2e 20 20 54 68 65 20 6f | 6c 64 20 6c 69 62 72 61 |. The o|ld libra|
|00000120| 72 69 65 73 20 61 72 65 | 0d 69 6e 63 6f 6d 70 61 |ries are|.incompa|
|00000130| 74 69 62 6c 65 20 77 69 | 74 68 20 74 68 65 20 6e |tible wi|th the n|
|00000140| 65 77 20 63 6f 6d 70 69 | 6c 65 72 2e 0d 0d 41 6c |ew compi|ler...Al|
|00000150| 73 6f 2c 20 74 68 69 73 | 20 6d 65 6d 6f 20 63 6f |so, this| memo co|
|00000160| 6e 74 61 69 6e 73 20 63 | 72 69 74 69 63 61 6c 20 |ntains c|ritical |
|00000170| 69 6e 66 6f 72 6d 61 74 | 69 6f 6e 20 63 6f 6e 63 |informat|ion conc|
|00000180| 65 72 6e 69 6e 67 20 74 | 68 65 20 62 65 68 61 76 |erning t|he behav|
|00000190| 69 6f 72 20 6f 66 0d 79 | 6f 75 72 20 61 70 70 6c |ior of.y|our appl|
|000001a0| 69 63 61 74 69 6f 6e 20 | 77 68 65 6e 20 69 74 20 |ication |when it |
|000001b0| 65 78 69 74 73 2e 20 20 | 54 68 69 73 20 69 73 20 |exits. |This is |
|000001c0| 69 6e 66 6f 72 6d 61 74 | 69 6f 6e 20 77 68 69 63 |informat|ion whic|
|000001d0| 68 20 79 6f 75 20 4d 55 | 53 54 20 4b 4e 4f 57 0d |h you MU|ST KNOW.|
|000001e0| 69 66 3a 0d 0d 09 28 31 | 61 29 20 59 6f 75 20 63 |if:...(1|a) You c|
|000001f0| 61 6c 6c 20 74 68 65 20 | 73 74 61 6e 64 61 72 64 |all the |standard|
|00000200| 20 6c 69 62 72 61 72 79 | 20 66 75 6e 63 74 69 6f | library| functio|
|00000210| 6e 20 22 6f 6e 65 78 69 | 74 22 2c 20 6f 72 20 79 |n "onexi|t", or y|
|00000220| 6f 75 20 75 73 65 0d 09 | 09 20 73 74 64 69 6f 2c |ou use..|. stdio,|
|00000230| 20 74 68 65 20 70 72 6f | 66 69 6c 65 72 2c 20 6f | the pro|filer, o|
|00000240| 72 20 22 73 69 67 6e 61 | 6c 22 20 28 65 61 63 68 |r "signa|l" (each|
|00000250| 20 6f 66 20 77 68 69 63 | 68 20 63 61 6c 6c 73 20 | of whic|h calls |
|00000260| 22 6f 6e 65 78 69 74 22 | 29 2e 0d 0d 09 09 09 09 |"onexit"|).......|
|00000270| 09 09 09 09 2d 6f 72 2d | 0d 0d 09 28 31 62 29 20 |....-or-|...(1b) |
|00000280| 59 6f 75 20 62 75 69 6c | 64 20 61 70 70 6c 69 63 |You buil|d applic|
|00000290| 61 74 69 6f 6e 73 20 77 | 69 74 68 20 74 68 65 20 |ations w|ith the |
|000002a0| 22 53 65 70 61 72 61 74 | 65 20 53 54 52 53 22 20 |"Separat|e STRS" |
|000002b0| 6f 70 74 69 6f 6e 20 73 | 65 74 2e 0d 09 09 20 28 |option s|et.... (|
|000002c0| 54 68 69 73 20 6f 70 74 | 69 6f 6e 20 69 73 20 66 |This opt|ion is f|
|000002d0| 72 65 71 75 65 6e 74 6c | 79 20 73 65 74 20 69 6e |requentl|y set in|
|000002e0| 20 70 72 6f 6a 65 63 74 | 73 20 77 68 69 63 68 20 | project|s which |
|000002f0| 6f 72 69 67 69 6e 61 74 | 65 64 0d 09 09 20 70 72 |originat|ed... pr|
|00000300| 69 6f 72 20 74 6f 20 54 | 48 49 4e 4b 20 43 20 33 |ior to T|HINK C 3|
|00000310| 2e 30 2e 29 0d 09 0d 09 | 09 09 09 09 09 09 09 2d |.0.)....|.......-|
|00000320| 61 6e 64 2d 0d 0d 09 28 | 32 29 20 20 59 6f 75 72 |and-...(|2) Your|
|00000330| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 20 63 61 6e | applica|tion can|
|00000340| 20 65 78 69 74 20 62 79 | 20 63 61 6c 6c 69 6e 67 | exit by| calling|
|00000350| 20 22 4c 61 75 6e 63 68 | 22 20 28 6f 72 20 22 5f | "Launch|" (or "_|
|00000360| 4c 61 75 6e 63 68 22 29 | 2e 0d 09 09 20 28 46 6f |Launch")|.... (Fo|
|00000370| 72 20 65 78 61 6d 70 6c | 65 2c 20 79 6f 75 72 20 |r exampl|e, your |
|00000380| 61 70 70 6c 69 63 61 74 | 69 6f 6e 20 6d 61 79 20 |applicat|ion may |
|00000390| 69 6d 70 6c 65 6d 65 6e | 74 20 61 20 22 54 72 61 |implemen|t a "Tra|
|000003a0| 6e 73 66 65 72 22 0d 09 | 09 20 6d 65 6e 75 2e 29 |nsfer"..|. menu.)|
|000003b0| 0d 0d 49 66 20 79 6f 75 | 20 64 6f 6e 27 74 20 75 |..If you| don't u|
|000003c0| 73 65 20 22 4c 61 75 6e | 63 68 22 2c 20 6f 72 20 |se "Laun|ch", or |
|000003d0| 79 6f 75 20 64 6f 6e 27 | 74 20 75 73 65 20 22 6f |you don'|t use "o|
|000003e0| 6e 65 78 69 74 22 20 6f | 72 20 22 53 65 70 61 72 |nexit" o|r "Separ|
|000003f0| 61 74 65 20 53 54 52 53 | 22 2c 0d 74 68 65 6e 20 |ate STRS|",.then |
|00000400| 79 6f 75 20 63 61 6e 20 | 67 65 74 20 61 77 61 79 |you can |get away|
|00000410| 20 77 69 74 68 6f 75 74 | 20 72 65 61 64 69 6e 67 | without| reading|
|00000420| 20 74 68 65 20 72 65 73 | 74 20 6f 66 20 74 68 69 | the res|t of thi|
|00000430| 73 2e 20 20 42 75 74 20 | 70 6c 65 61 73 65 20 62 |s. But |please b|
|00000440| 65 0d 73 75 72 65 20 74 | 6f 20 75 70 64 61 74 65 |e.sure t|o update|
|00000450| 20 79 6f 75 72 20 6c 69 | 62 72 61 72 69 65 73 20 | your li|braries |
|00000460| 6e 6f 20 6d 61 74 74 65 | 72 20 77 68 61 74 21 0d |no matte|r what!.|
|00000470| 0d 0d 42 41 43 4b 47 52 | 4f 55 4e 44 0d 2d 2d 2d |..BACKGR|OUND.---|
|00000480| 2d 2d 2d 2d 2d 2d 2d 0d | 0d 54 68 65 20 6d 61 6e |-------.|.The man|
|00000490| 6e 65 72 20 69 6e 20 77 | 68 69 63 68 20 54 48 49 |ner in w|hich THI|
|000004a0| 4e 4b 20 43 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |NK C app|lication|
|000004b0| 73 20 63 6c 65 61 6e 20 | 75 70 20 77 68 65 6e 20 |s clean |up when |
|000004c0| 74 68 65 79 20 65 78 69 | 74 20 68 61 73 0d 63 68 |they exi|t has.ch|
|000004d0| 61 6e 67 65 64 20 69 6e | 20 76 65 72 73 69 6f 6e |anged in| version|
|000004e0| 20 33 2e 30 31 70 34 2e | 20 20 57 68 65 6e 20 75 | 3.01p4.| When u|
|000004f0| 73 69 6e 67 20 74 68 69 | 73 20 76 65 72 73 69 6f |sing thi|s versio|
|00000500| 6e 20 28 6f 72 20 6c 61 | 74 65 72 29 2c 20 69 74 |n (or la|ter), it|
|00000510| 20 69 73 0d 63 72 69 74 | 69 63 61 6c 20 74 68 61 | is.crit|ical tha|
|00000520| 74 20 79 6f 75 20 61 76 | 6f 69 64 20 75 73 69 6e |t you av|oid usin|
|00000530| 67 20 65 61 72 6c 69 65 | 72 20 76 65 72 73 69 6f |g earlie|r versio|
|00000540| 6e 73 20 6f 66 20 74 68 | 65 20 73 74 61 6e 64 61 |ns of th|e standa|
|00000550| 72 64 20 6c 69 62 72 61 | 72 69 65 73 2c 0d 61 73 |rd libra|ries,.as|
|00000560| 20 74 68 65 20 69 6d 70 | 6c 65 6d 65 6e 74 61 74 | the imp|lementat|
|00000570| 69 6f 6e 20 6f 66 20 22 | 6f 6e 65 78 69 74 22 20 |ion of "|onexit" |
|00000580| 68 61 73 20 63 68 61 6e | 67 65 64 20 69 6e 20 61 |has chan|ged in a|
|00000590| 6e 20 69 6e 63 6f 6d 70 | 61 74 69 62 6c 65 20 77 |n incomp|atible w|
|000005a0| 61 79 2e 0d 0d 49 6e 20 | 61 64 64 69 74 69 6f 6e |ay...In |addition|
|000005b0| 2c 20 69 74 20 63 61 6e | 20 6e 6f 20 6c 6f 6e 67 |, it can| no long|
|000005c0| 65 72 20 62 65 20 67 75 | 61 72 61 6e 74 65 65 64 |er be gu|aranteed|
|000005d0| 20 74 68 61 74 20 79 6f | 75 72 20 61 70 70 6c 69 | that yo|ur appli|
|000005e0| 63 61 74 69 6f 6e 20 77 | 69 6c 6c 0d 62 65 20 61 |cation w|ill.be a|
|000005f0| 62 6c 65 20 74 6f 20 63 | 6c 65 61 6e 20 75 70 20 |ble to c|lean up |
|00000600| 69 66 20 69 74 20 65 78 | 69 74 73 20 77 69 74 68 |if it ex|its with|
|00000610| 20 61 20 22 4c 61 75 6e | 63 68 22 2e 20 20 54 68 | a "Laun|ch". Th|
|00000620| 69 73 20 6d 61 79 20 62 | 65 20 61 6e 20 69 73 73 |is may b|e an iss|
|00000630| 75 65 0d 69 66 20 79 6f | 75 20 61 72 65 20 72 65 |ue.if yo|u are re|
|00000640| 6c 79 69 6e 67 20 6f 6e | 20 22 6f 6e 65 78 69 74 |lying on| "onexit|
|00000650| 22 20 74 6f 20 73 63 68 | 65 64 75 6c 65 20 63 6c |" to sch|edule cl|
|00000660| 65 61 6e 2d 75 70 2e 20 | 20 45 76 65 6e 20 69 66 |ean-up. | Even if|
|00000670| 20 79 6f 75 27 72 65 20 | 6e 6f 74 0d 75 73 69 6e | you're |not.usin|
|00000680| 67 20 22 6f 6e 65 78 69 | 74 22 2c 20 74 68 65 20 |g "onexi|t", the |
|00000690| 72 75 6e 74 69 6d 65 20 | 73 79 73 74 65 6d 20 66 |runtime |system f|
|000006a0| 6f 72 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 73 20 |or appli|cations |
|000006b0| 62 75 69 6c 74 20 77 69 | 74 68 20 22 53 65 70 61 |built wi|th "Sepa|
|000006c0| 72 61 74 65 0d 53 54 52 | 53 22 20 68 61 73 20 63 |rate.STR|S" has c|
|000006d0| 6c 65 61 6e 2d 75 70 20 | 6f 66 20 69 74 73 20 6f |lean-up |of its o|
|000006e0| 77 6e 20 74 6f 20 70 65 | 72 66 6f 72 6d 20 61 74 |wn to pe|rform at|
|000006f0| 20 65 78 69 74 2e 0d 0d | 50 72 65 76 69 6f 75 73 | exit...|Previous|
|00000700| 6c 79 2c 20 74 68 65 20 | 72 75 6e 74 69 6d 65 20 |ly, the |runtime |
|00000710| 73 79 73 74 65 6d 20 62 | 75 69 6c 74 20 69 6e 74 |system b|uilt int|
|00000720| 6f 20 65 76 65 72 79 20 | 54 48 49 4e 4b 20 43 20 |o every |THINK C |
|00000730| 61 70 70 6c 69 63 61 74 | 69 6f 6e 20 77 61 73 0d |applicat|ion was.|
|00000740| 61 62 6c 65 20 74 6f 20 | 61 72 72 61 6e 67 65 20 |able to |arrange |
|00000750| 66 6f 72 20 63 6c 65 61 | 6e 2d 75 70 20 6e 6f 20 |for clea|n-up no |
|00000760| 6d 61 74 74 65 72 20 68 | 6f 77 20 74 68 65 20 61 |matter h|ow the a|
|00000770| 70 70 6c 69 63 61 74 69 | 6f 6e 20 6d 69 67 68 74 |pplicati|on might|
|00000780| 20 65 78 69 74 2e 0d 55 | 6e 66 6f 72 74 75 6e 61 | exit..U|nfortuna|
|00000790| 74 65 6c 79 2c 20 74 68 | 65 20 6d 65 74 68 6f 64 |tely, th|e method|
|000007a0| 20 75 73 65 64 20 74 6f | 20 61 73 73 75 72 65 20 | used to| assure |
|000007b0| 74 68 69 73 20 72 65 73 | 75 6c 74 65 64 20 69 6e |this res|ulted in|
|000007c0| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 73 0d 77 68 | applica|tions.wh|
|000007d0| 69 63 68 20 77 65 72 65 | 20 6e 6f 74 20 22 33 32 |ich were| not "32|
|000007e0| 2d 62 69 74 20 63 6c 65 | 61 6e 22 2e 0d 0d 54 68 |-bit cle|an"...Th|
|000007f0| 65 20 6e 65 77 20 6d 65 | 74 68 6f 64 20 69 73 20 |e new me|thod is |
|00000800| 33 32 2d 62 69 74 20 63 | 6c 65 61 6e 2c 20 62 75 |32-bit c|lean, bu|
|00000810| 74 20 63 61 6e 27 74 20 | 63 61 74 63 68 20 74 68 |t can't |catch th|
|00000820| 65 20 63 61 73 65 20 77 | 68 65 72 65 20 74 68 65 |e case w|here the|
|00000830| 0d 61 70 70 6c 69 63 61 | 74 69 6f 6e 20 65 78 69 |.applica|tion exi|
|00000840| 74 73 20 77 69 74 68 20 | 61 20 22 4c 61 75 6e 63 |ts with |a "Launc|
|00000850| 68 22 2e 20 20 28 41 63 | 74 75 61 6c 6c 79 2c 20 |h". (Ac|tually, |
|00000860| 65 76 65 6e 20 74 68 69 | 73 20 63 61 73 65 20 69 |even thi|s case i|
|00000870| 73 20 63 61 75 67 68 74 | 0d 69 66 20 74 68 65 20 |s caught|.if the |
|00000880| 61 70 70 6c 69 63 61 74 | 69 6f 6e 20 69 73 20 72 |applicat|ion is r|
|00000890| 75 6e 6e 69 6e 67 20 75 | 6e 64 65 72 20 4d 75 6c |unning u|nder Mul|
|000008a0| 74 69 46 69 6e 64 65 72 | 20 2d 2d 20 74 68 6f 75 |tiFinder| -- thou|
|000008b0| 67 68 20 74 68 69 73 20 | 63 61 6e 27 74 20 62 65 |gh this |can't be|
|000008c0| 0d 67 75 61 72 61 6e 74 | 65 65 64 20 66 6f 72 20 |.guarant|eed for |
|000008d0| 66 75 74 75 72 65 20 76 | 65 72 73 69 6f 6e 73 20 |future v|ersions |
|000008e0| 6f 66 20 4d 75 6c 74 69 | 46 69 6e 64 65 72 2e 29 |of Multi|Finder.)|
|000008f0| 0d 0d 0d 57 41 59 53 20 | 4f 46 20 45 58 49 54 49 |...WAYS |OF EXITI|
|00000900| 4e 47 0d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |NG.-----|--------|
|00000910| 2d 2d 0d 0d 4c 65 74 27 | 73 20 64 65 66 69 6e 65 |--..Let'|s define|
|00000920| 20 73 6f 6d 65 20 74 65 | 72 6d 73 3a 0d 0d 09 22 | some te|rms:..."|
|00000930| 6e 6f 72 6d 61 6c 20 65 | 78 69 74 22 0d 09 0d 09 |normal e|xit"....|
|00000940| 09 49 66 20 79 6f 75 72 | 20 61 70 70 6c 69 63 61 |.If your| applica|
|00000950| 74 69 6f 6e 20 65 78 69 | 74 73 20 62 79 20 63 61 |tion exi|ts by ca|
|00000960| 6c 6c 69 6e 67 20 74 68 | 65 20 22 65 78 69 74 22 |lling th|e "exit"|
|00000970| 20 66 75 6e 63 74 69 6f | 6e 2c 20 6f 72 0d 09 09 | functio|n, or...|
|00000980| 62 79 20 72 65 74 75 72 | 6e 69 6e 67 20 66 72 6f |by retur|ning fro|
|00000990| 6d 20 22 6d 61 69 6e 22 | 2c 20 74 68 69 73 20 69 |m "main"|, this i|
|000009a0| 73 20 63 6f 6e 73 69 64 | 65 72 65 64 20 61 20 6e |s consid|ered a n|
|000009b0| 6f 72 6d 61 6c 20 65 78 | 69 74 2e 0d 09 0d 09 22 |ormal ex|it....."|
|000009c0| 61 62 6e 6f 72 6d 61 6c | 20 65 78 69 74 22 0d 09 |abnormal| exit"..|
|000009d0| 0d 09 09 49 66 20 79 6f | 75 72 20 61 70 70 6c 69 |...If yo|ur appli|
|000009e0| 63 61 74 69 6f 6e 20 65 | 78 69 74 73 20 62 79 20 |cation e|xits by |
|000009f0| 63 61 6c 6c 69 6e 67 20 | 22 45 78 69 74 54 6f 53 |calling |"ExitToS|
|00000a00| 68 65 6c 6c 22 2c 20 74 | 68 69 73 20 69 73 0d 09 |hell", t|his is..|
|00000a10| 09 63 6f 6e 73 69 64 65 | 72 65 64 20 61 6e 20 61 |.conside|red an a|
|00000a20| 62 6e 6f 72 6d 61 6c 20 | 65 78 69 74 2e 20 20 43 |bnormal |exit. C|
|00000a30| 61 6c 6c 69 6e 67 20 22 | 61 62 6f 72 74 22 20 69 |alling "|abort" i|
|00000a40| 73 20 63 6f 76 65 72 65 | 64 20 75 6e 64 65 72 0d |s covere|d under.|
|00000a50| 09 09 74 68 69 73 20 64 | 65 66 69 6e 69 74 69 6f |..this d|efinitio|
|00000a60| 6e 2c 20 61 73 20 69 73 | 20 74 65 72 6d 69 6e 61 |n, as is| termina|
|00000a70| 74 69 6e 67 20 65 78 65 | 63 75 74 69 6f 6e 20 75 |ting exe|cution u|
|00000a80| 6e 64 65 72 20 74 68 65 | 20 63 6f 6e 74 72 6f 6c |nder the| control|
|00000a90| 0d 09 09 6f 66 20 61 20 | 64 65 62 75 67 67 65 72 |...of a |debugger|
|00000aa0| 2e 20 20 28 55 6e 64 65 | 72 20 74 68 65 20 43 55 |. (Unde|r the CU|
|00000ab0| 52 52 45 4e 54 20 69 6d | 70 6c 65 6d 65 6e 74 61 |RRENT im|plementa|
|00000ac0| 74 69 6f 6e 20 6f 66 20 | 4d 75 6c 74 69 46 69 6e |tion of |MultiFin|
|00000ad0| 64 65 72 2c 0d 09 09 61 | 6c 6c 20 65 78 69 74 73 |der,...a|ll exits|
|00000ae0| 20 61 72 65 20 65 69 74 | 68 65 72 20 6e 6f 72 6d | are eit|her norm|
|00000af0| 61 6c 20 6f 72 20 61 62 | 6e 6f 72 6d 61 6c 20 2d |al or ab|normal -|
|00000b00| 2d 20 65 76 65 6e 20 22 | 53 79 73 45 72 72 6f 72 |- even "|SysError|
|00000b10| 22 20 65 6e 64 73 0d 09 | 09 75 70 20 63 61 6c 6c |" ends..|.up call|
|00000b20| 69 6e 67 20 22 45 78 69 | 74 54 6f 53 68 65 6c 6c |ing "Exi|tToShell|
|00000b30| 22 21 29 0d 09 0d 09 22 | 75 6e 73 61 66 65 20 65 |"!)...."|unsafe e|
|00000b40| 78 69 74 22 0d 09 0d 09 | 09 49 66 20 79 6f 75 72 |xit"....|.If your|
|00000b50| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 20 65 78 69 | applica|tion exi|
|00000b60| 74 73 20 62 79 20 63 61 | 6c 6c 69 6e 67 20 22 4c |ts by ca|lling "L|
|00000b70| 61 75 6e 63 68 22 2c 20 | 6f 72 20 69 6e 20 61 6e |aunch", |or in an|
|00000b80| 79 20 6f 74 68 65 72 0d | 09 09 6d 61 6e 6e 65 72 |y other.|..manner|
|00000b90| 20 6e 6f 74 20 63 6f 76 | 65 72 65 64 20 61 62 6f | not cov|ered abo|
|00000ba0| 76 65 2c 20 74 68 69 73 | 20 69 73 20 63 6f 6e 73 |ve, this| is cons|
|00000bb0| 69 64 65 72 65 64 20 61 | 6e 20 75 6e 73 61 66 65 |idered a|n unsafe|
|00000bc0| 20 65 78 69 74 2e 0d 0d | 0d 4f 4e 45 58 49 54 20 | exit...|.ONEXIT |
|00000bd0| 41 4e 44 20 5f 4f 4e 45 | 58 49 54 0d 2d 2d 2d 2d |AND _ONE|XIT.----|
|00000be0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 0d 0d |--------|------..|
|00000bf0| 52 6f 75 74 69 6e 65 73 | 20 72 65 67 69 73 74 65 |Routines| registe|
|00000c00| 72 65 64 20 77 69 74 68 | 20 22 6f 6e 65 78 69 74 |red with| "onexit|
|00000c10| 22 20 77 69 6c 6c 20 6e | 6f 77 20 62 65 20 63 61 |" will n|ow be ca|
|00000c20| 6c 6c 65 64 20 6f 6e 6c | 79 20 6f 6e 20 6e 6f 72 |lled onl|y on nor|
|00000c30| 6d 61 6c 20 65 78 69 74 | 73 2e 0d 50 72 65 76 69 |mal exit|s..Previ|
|00000c40| 6f 75 73 6c 79 2c 20 74 | 68 65 79 20 77 65 72 65 |ously, t|hey were|
|00000c50| 20 63 61 6c 6c 65 64 20 | 6f 6e 20 61 6e 79 20 66 | called |on any f|
|00000c60| 6f 72 6d 20 6f 66 20 65 | 78 69 74 2e 0d 0d 41 20 |orm of e|xit...A |
|00000c70| 6e 65 77 20 72 6f 75 74 | 69 6e 65 2c 20 22 5f 6f |new rout|ine, "_o|
|00000c80| 6e 65 78 69 74 22 2c 20 | 69 73 20 6e 6f 77 20 61 |nexit", |is now a|
|00000c90| 76 61 69 6c 61 62 6c 65 | 2e 20 20 52 6f 75 74 69 |vailable|. Routi|
|00000ca0| 6e 65 73 20 72 65 67 69 | 73 74 65 72 65 64 20 77 |nes regi|stered w|
|00000cb0| 69 74 68 0d 22 5f 6f 6e | 65 78 69 74 22 20 77 69 |ith."_on|exit" wi|
|00000cc0| 6c 6c 20 62 65 20 63 61 | 6c 6c 65 64 20 6f 6e 20 |ll be ca|lled on |
|00000cd0| 61 62 6e 6f 72 6d 61 6c | 20 61 73 20 77 65 6c 6c |abnormal| as well|
|00000ce0| 20 61 73 20 6e 6f 72 6d | 61 6c 20 65 78 69 74 73 | as norm|al exits|
|00000cf0| 2e 0d 0d 54 6f 20 73 75 | 6d 6d 61 72 69 7a 65 3a |...To su|mmarize:|
|00000d00| 0d 0d 09 28 31 29 20 4f | 6e 20 61 20 6e 6f 72 6d |...(1) O|n a norm|
|00000d10| 61 6c 20 65 78 69 74 2c | 20 72 6f 75 74 69 6e 65 |al exit,| routine|
|00000d20| 73 20 72 65 67 69 73 74 | 65 72 65 64 20 77 69 74 |s regist|ered wit|
|00000d30| 68 20 22 6f 6e 65 78 69 | 74 22 20 6f 72 0d 09 09 |h "onexi|t" or...|
|00000d40| 22 5f 6f 6e 65 78 69 74 | 22 20 77 69 6c 6c 20 62 |"_onexit|" will b|
|00000d50| 65 20 63 61 6c 6c 65 64 | 2e 0d 09 0d 09 28 32 29 |e called|.....(2)|
|00000d60| 20 4f 6e 20 61 6e 20 61 | 62 6e 6f 72 6d 61 6c 20 | On an a|bnormal |
|00000d70| 65 78 69 74 2c 20 72 6f | 75 74 69 6e 65 73 20 72 |exit, ro|utines r|
|00000d80| 65 67 69 73 74 65 72 65 | 64 20 77 69 74 68 20 22 |egistere|d with "|
|00000d90| 5f 6f 6e 65 78 69 74 22 | 0d 09 09 77 69 6c 6c 20 |_onexit"|...will |
|00000da0| 62 65 20 63 61 6c 6c 65 | 64 2e 20 20 52 6f 75 74 |be calle|d. Rout|
|00000db0| 69 6e 65 73 20 72 65 67 | 69 73 74 65 72 65 64 20 |ines reg|istered |
|00000dc0| 77 69 74 68 20 22 6f 6e | 65 78 69 74 22 20 77 69 |with "on|exit" wi|
|00000dd0| 6c 6c 0d 09 09 4e 4f 54 | 20 62 65 20 63 61 6c 6c |ll...NOT| be call|
|00000de0| 65 64 2e 0d 0d 49 6e 20 | 62 6f 74 68 20 6f 66 20 |ed...In |both of |
|00000df0| 74 68 65 73 65 20 63 61 | 73 65 73 2c 20 74 68 65 |these ca|ses, the|
|00000e00| 20 72 75 6e 74 69 6d 65 | 20 73 75 70 70 6f 72 74 | runtime| support|
|00000e10| 20 66 6f 72 20 22 53 65 | 70 61 72 61 74 65 20 53 | for "Se|parate S|
|00000e20| 54 52 53 22 20 77 69 6c | 6c 20 62 65 0d 67 69 76 |TRS" wil|l be.giv|
|00000e30| 65 6e 20 61 20 63 68 61 | 6e 63 65 20 74 6f 20 63 |en a cha|nce to c|
|00000e40| 6c 65 61 6e 20 75 70 2e | 20 20 28 54 68 69 73 20 |lean up.| (This |
|00000e50| 68 61 70 70 65 6e 73 20 | 65 76 65 6e 20 69 66 20 |happens |even if |
|00000e60| 79 6f 75 20 6e 65 76 65 | 72 20 72 65 67 69 73 74 |you neve|r regist|
|00000e70| 65 72 20 61 6e 79 0d 63 | 6c 65 61 6e 2d 75 70 20 |er any.c|lean-up |
|00000e80| 72 6f 75 74 69 6e 65 73 | 20 6f 66 20 79 6f 75 72 |routines| of your|
|00000e90| 20 6f 77 6e 2e 29 0d 0d | 0d 44 45 41 4c 49 4e 47 | own.)..|.DEALING|
|00000ea0| 20 57 49 54 48 20 55 4e | 53 41 46 45 20 45 58 49 | WITH UN|SAFE EXI|
|00000eb0| 54 53 0d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |TS.-----|--------|
|00000ec0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 0d 0d 49 66 |--------|----..If|
|00000ed0| 20 61 6e 20 75 6e 73 61 | 66 65 20 65 78 69 74 20 | an unsa|fe exit |
|00000ee0| 69 73 20 74 61 6b 65 6e | 2c 20 6e 6f 20 63 6c 65 |is taken|, no cle|
|00000ef0| 61 6e 2d 75 70 20 72 6f | 75 74 69 6e 65 73 20 77 |an-up ro|utines w|
|00000f00| 69 6c 6c 20 62 65 20 63 | 61 6c 6c 65 64 2e 20 20 |ill be c|alled. |
|00000f10| 49 66 20 79 6f 75 0d 68 | 61 76 65 20 72 65 67 69 |If you.h|ave regi|
|00000f20| 73 74 65 72 65 64 20 65 | 73 73 65 6e 74 69 61 6c |stered e|ssential|
|00000f30| 20 63 6c 65 61 6e 2d 75 | 70 20 72 6f 75 74 69 6e | clean-u|p routin|
|00000f40| 65 73 20 28 65 2e 67 2e | 20 72 65 6d 6f 76 69 6e |es (e.g.| removin|
|00000f50| 67 20 74 72 61 70 20 69 | 6e 74 65 72 63 65 70 74 |g trap i|ntercept|
|00000f60| 73 0d 6f 72 20 6f 74 68 | 65 72 20 6c 6f 77 2d 6d |s.or oth|er low-m|
|00000f70| 65 6d 6f 72 79 20 76 65 | 63 74 6f 72 73 29 2c 20 |emory ve|ctors), |
|00000f80| 6f 72 20 69 66 20 79 6f | 75 72 20 61 70 70 6c 69 |or if yo|ur appli|
|00000f90| 63 61 74 69 6f 6e 20 69 | 73 20 62 75 69 6c 74 20 |cation i|s built |
|00000fa0| 75 73 69 6e 67 0d 22 53 | 65 70 61 72 61 74 65 20 |using."S|eparate |
|00000fb0| 53 54 52 53 22 2c 20 74 | 68 69 73 20 63 6f 75 6c |STRS", t|his coul|
|00000fc0| 64 20 62 65 20 64 69 73 | 61 73 74 72 6f 75 73 2e |d be dis|astrous.|
|00000fd0| 0d 0d 54 6f 20 64 65 61 | 6c 20 77 69 74 68 20 74 |..To dea|l with t|
|00000fe0| 68 69 73 2c 20 61 20 6e | 65 77 20 72 6f 75 74 69 |his, a n|ew routi|
|00000ff0| 6e 65 2c 20 22 5f 65 78 | 69 74 69 6e 67 22 2c 20 |ne, "_ex|iting", |
|00001000| 69 73 20 6e 6f 77 20 61 | 76 61 69 6c 61 62 6c 65 |is now a|vailable|
|00001010| 2e 20 20 54 68 69 73 0d | 66 75 6e 63 74 69 6f 6e |. This.|function|
|00001020| 20 70 65 72 66 6f 72 6d | 73 20 61 6c 6c 20 61 70 | perform|s all ap|
|00001030| 70 72 6f 70 72 69 61 74 | 65 20 63 6c 65 61 6e 2d |propriat|e clean-|
|00001040| 75 70 2c 20 62 75 74 20 | 64 6f 65 73 6e 27 74 20 |up, but |doesn't |
|00001050| 61 63 74 75 61 6c 6c 79 | 20 65 78 69 74 2e 0d 49 |actually| exit..I|
|00001060| 74 20 73 68 6f 75 6c 64 | 20 62 65 20 63 61 6c 6c |t should| be call|
|00001070| 65 64 20 62 65 66 6f 72 | 65 20 69 6e 69 74 69 61 |ed befor|e initia|
|00001080| 74 69 6e 67 20 61 6e 20 | 75 6e 73 61 66 65 20 65 |ting an |unsafe e|
|00001090| 78 69 74 2c 20 65 2e 67 | 2e 20 62 65 66 6f 72 65 |xit, e.g|. before|
|000010a0| 20 63 61 6c 6c 69 6e 67 | 0d 22 4c 61 75 6e 63 68 | calling|."Launch|
|000010b0| 22 2e 0d 0d 22 5f 65 78 | 69 74 69 6e 67 22 20 74 |"..."_ex|iting" t|
|000010c0| 61 6b 65 73 20 61 6e 20 | 61 72 67 75 6d 65 6e 74 |akes an |argument|
|000010d0| 20 69 6e 64 69 63 61 74 | 69 6e 67 20 77 68 65 74 | indicat|ing whet|
|000010e0| 68 65 72 20 74 68 65 20 | 63 6c 65 61 6e 2d 75 70 |her the |clean-up|
|000010f0| 20 73 68 6f 75 6c 64 20 | 62 65 0d 74 68 61 74 20 | should |be.that |
|00001100| 61 73 73 6f 63 69 61 74 | 65 64 20 77 69 74 68 20 |associat|ed with |
|00001110| 61 20 6e 6f 72 6d 61 6c | 20 6f 72 20 61 6e 20 61 |a normal| or an a|
|00001120| 62 6e 6f 72 6d 61 6c 20 | 65 78 69 74 2e 20 20 41 |bnormal |exit. A|
|00001130| 20 6e 6f 6e 2d 7a 65 72 | 6f 20 61 72 67 75 6d 65 | non-zer|o argume|
|00001140| 6e 74 0d 69 6e 64 69 63 | 61 74 65 73 20 61 20 6e |nt.indic|ates a n|
|00001150| 6f 72 6d 61 6c 20 65 78 | 69 74 2e 0d 0d 49 66 20 |ormal ex|it...If |
|00001160| 79 6f 75 72 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |your app|lication|
|00001170| 20 6e 65 76 65 72 20 63 | 61 6c 6c 73 20 22 6f 6e | never c|alls "on|
|00001180| 65 78 69 74 22 20 6f 72 | 20 22 5f 6f 6e 65 78 69 |exit" or| "_onexi|
|00001190| 74 22 20 28 61 6e 64 20 | 64 6f 65 73 6e 27 74 20 |t" (and |doesn't |
|000011a0| 75 73 65 0d 73 74 64 69 | 6f 2c 20 74 68 65 20 70 |use.stdi|o, the p|
|000011b0| 72 6f 66 69 6c 65 72 2c | 20 6f 72 20 22 73 69 67 |rofiler,| or "sig|
|000011c0| 6e 61 6c 22 2c 20 77 68 | 69 63 68 20 64 6f 29 2c |nal", wh|ich do),|
|000011d0| 20 41 4e 44 20 69 66 20 | 79 6f 75 72 20 61 70 70 | AND if |your app|
|000011e0| 6c 69 63 61 74 69 6f 6e | 20 69 73 0d 6e 6f 74 20 |lication| is.not |
|000011f0| 62 75 69 6c 74 20 77 69 | 74 68 20 22 53 65 70 61 |built wi|th "Sepa|
|00001200| 72 61 74 65 20 53 54 52 | 53 22 2c 20 74 68 65 6e |rate STR|S", then|
|00001210| 20 79 6f 75 20 6e 65 65 | 64 6e 27 74 20 62 6f 74 | you nee|dn't bot|
|00001220| 68 65 72 20 77 69 74 68 | 20 22 5f 65 78 69 74 69 |her with| "_exiti|
|00001230| 6e 67 22 2e 0d 0d 54 68 | 65 20 22 65 78 65 63 22 |ng"...Th|e "exec"|
|00001240| 20 73 65 72 69 65 73 20 | 6f 66 20 73 74 61 6e 64 | series |of stand|
|00001250| 61 72 64 20 6c 69 62 72 | 61 72 79 20 66 75 6e 63 |ard libr|ary func|
|00001260| 74 69 6f 6e 73 20 63 61 | 6c 6c 20 22 5f 65 78 69 |tions ca|ll "_exi|
|00001270| 74 69 6e 67 28 31 29 22 | 2e 0d 00 00 00 00 00 00 |ting(1)"|........|
+--------+-------------------------+-------------------------+--------+--------+