pett@socrates.ucsf.edu.UUCP (05/26/87)
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 "<program>.prg: no more files" (where <program> 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
HAHN_K@DMRHRZ11.BITNET (01/31/89)
Thanks to all who responded, 'twas nice to get help that soon. The problem seems to be indeed MWC's: it doesn't like pointers to functions returning FLOATs, it prefers DOUBLEs. So I'll have to convert the code, otherwise NO GO. Thanks again, you know: What you C is what you get. Klaus. Klaus Hahn Marburg, West-Germany Bitnet: HAHN_K@DMRHRZ11 Bix: K_HAHN