Path: utzoo!attcan!uunet!lll-winken!ames!mailrus!ncar!tank!nucsrl!accuvax.nwu.edu!bob From: bob@accuvax.nwu.edu (Bob Hablutzel) Newsgroups: comp.sys.mac.programmer Subject: Re: Dialogs in Init Code Message-ID: <10050065@accuvax.nwu.edu> Date: 10 Jan 89 13:58:33 GMT References: <20488@ames.arc.nasa.gov> Organization: Northwestern U, Evanston IL, USA Lines: 24 > I am trying to display a dialog window in Init code, and am > having problems. Is there some limitations on the dialogs > within init code. I just want to display a dialog with > a static text item when the init boots up. I am using > aztec v3.6c. Could of gotchas with dialogs in INIT code. First, you have to initialize all of the managers, just like an application. This implies that you have to allocate a block of storage for the quickdraw (and any other) global variables. This would have to be 206 bytes (I think), plus any space for your own global variables. Then you have to point A5 to the end of this space. This is the tricky part, and might require some assembly code. Finally, if you are planning on this code every running on an SE, you have to clear out the global variable DeskHook. If this global variable is the default -1, the machine will crash when the dialog is closed. Good luck! > Brad Soe > soe@ames.arc.nasa.gov Bob Hablutzel BOB@NUACC.ACNS.NWU.EDU