Path: utzoo!attcan!uunet!husc6!mailrus!uflorida!ukma!psuvm.bitnet!cunyvm!ndsuvm1.bitnet!ud040164 From: UD040164@NDSUVM1.BITNET (a.d. jensen) Newsgroups: comp.sys.mac.programmer Subject: Dialogs in INITS (LSC3) Message-ID: <1325UD040164@NDSUVM1> Date: 6 Sep 88 04:25:00 GMT Organization: North Dakota Higher Education Computer Network, Fargo, ND Lines: 28 DISCLAIMER: Author bears full responsibility for contents of this article. Here is a problem which has me stumped: I wrote an INIT in LSC3 which basically throws up a dialog box and then messes around with it, then discards it. Basically, I call GetNewDialog (with NULL for the storage), use SetIText and SetCTitle to monkey around with the dialog as needed, then call ModalDialog to handle it, then call DisposDialog to get rid of it. All is well, until the DisposDialog, when I get a system bomb 2. The trouble I have with this is that _nothing_ bad happens until I try to do something with the window (ie: DisposDialog, MoveWindow, etc). This seems very weird. I called Think, and the guy I talked to just sort of said that it couldn't be happening, and he had no idea what was wrong. All of my experimentation has been for nought. No matter where I try to do something with the window, it always crashes. BTW, this _does_ work fine on the Mac II. The guy at Think said something about my dialog getting a bad address or something (which won't bomb on a II), but why doesn't it bomb when changing text, or other things which refer to the dialog? My only idea is that the dialog gets a bad window, but I have no idea of what to do to solve this, if it is the case... Thanks for your help. dale