Path: utzoo!attcan!uunet!munnari!iand From: iand@munnari.oz (Ian Robert Dobson) Newsgroups: comp.sys.mac.programmer Subject: Re: What do InitGraf (etc) do? Message-ID: <2582@munnari.oz> Date: 23 Nov 88 01:42:59 GMT References: <988@etive.ed.ac.uk> Organization: Comp Sci, Melbourne Uni, Australia Lines: 13 > A short and sweet question: Why do my programs have to call InitGraf(), > InitTE(), InitDialogs() and all the rest of this stuff? The Initialization routines build vital data structures in the application heap (like the QuickDraw global variables, the TextEdit scrap, etc.). If you don't call them then the structures won't be there when they are needed and your program will bomb. Every time you quit to the finder or launch an application a new application heap is made so the init routines must be called again. Ian R. Dobson. University of Melbourne munnari!iand