Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!chianti!shane From: shane@chianti.cc.umich.edu (Shane Looker) Newsgroups: comp.sys.mac.programmer Subject: Re: sprintf problems under LSC 2.15 Message-ID: <651@mailrus.cc.umich.edu> Date: 23 Aug 88 20:19:42 GMT References: <4562@saturn.ucsc.edu> <805@helios.ee.lbl.gov> Sender: usenet@mailrus.cc.umich.edu Reply-To: shane@um.cc.umich.edu (Shane Looker) Organization: University of Michigan Computing Center, Ann Arbor Lines: 16 >Under LSC 2.15, you can't have global variables in code resources (I don't >think you can even under 3.0 except for drivers and DA's) and so something >strange is happening when you call sprintf. Under LSC 3.0 you can have globals in your code resource. You must do the following at the beginning of your entry. RememberA0(); SetUpA4(); Before you return, do RestoreA4(). This is in the LSC 3.0 manual, in the section of CODE resources. Shane Looker Looker@um.cc.umich.edu