Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!rutgers!ames!sdcsvax!ucbvax!ucsfcgl!socrates.ucsf.edu!pett From: pett@socrates.ucsf.edu.UUCP Newsgroups: comp.sys.atari.st Subject: MWC problem Message-ID: <10222@cgl.ucsf.EDU> Date: Tue, 26-May-87 03:43:44 EDT Article-I.D.: cgl.10222 Posted: Tue May 26 03:43:44 1987 Date-Received: Wed, 27-May-87 01:48:24 EDT Sender: daemon@cgl.ucsf.edu Reply-To: pett@socrates.ucsf.edu.UUCP (Eric F. Pettersen) Distribution: world Organization: UCSF Computer Graphics Lab Lines: 20 I have just solved a difficulty with MWC that I thought was going to drive me nuts and I thought I'd share it with the net to possibly reduce madness around the world. What would happen was that I'd write a program and compile it without error or complaint, but when I'd run it, the shell loved it so much that it would run the program multiple times *without my doing anything*. It would finally terminate (generally after two runs) with the message ".prg: no more files" (where was my program name). Well, what the problem turned out to be is that if you use Fsetdta() in your program, the shell goes bonkers. What you have to do is use Fgetdta() first to get the old dta address, and when you're done use Fsetdta() to restore the old dta address. The shell should do this for you but it doesn't. Now you know. I'm using v1.1 and have ordered v2.0 . Maybe v2.0 fixes this. If it doesn't, Mark Williams Co. will hear about it. Eric Pettersen pett@cgl.ucsf.edu or ucbvax!ucsfcgl!pett