Path: utzoo!utgpu!water!watmath!clyde!rutgers!cmcl2!nrl-cmf!ames!pasteur!ucbvax!USU.BITNET!FATQW From: FATQW@USU.BITNET Newsgroups: comp.sys.amiga Subject: HELP!! (programming) Message-ID: <8802210455.AA14301@jade.berkeley.edu> Date: 21 Feb 88 03:50:00 GMT Sender: daemon@ucbvax.BERKELEY.EDU Lines: 27 Ok, I've got this really strange problem. For some reason, a few of the new 1.2 function interfaces in Amiga.lib, such as RefreshGList(), import something that imports something called __ProgramName (_ProgramName from C). No problem. Just define _ProgramName to be something - I defined it as an array of characters naming my program. But that's not the problem. That's a *warning*. Now I've got this real useful module in my custom library which defines IntuitionBase and GfxBase, and provides functions for opening and closing them. (OpenGraphics() and CloseGraphics(), they work on IntuitionBase too.) Well, here's the problem. I can't use these functions when that symbol _ProgramName is needed. It gives a software error (GURU number 00000000.0000A708) when the program starts, and calls OpenGraphics(). It doesn't do this if I don't use OpenGraphics() and CloseGraphics(). It also doesn't do this if I don't use those new functions which generate an indirect (through another function, cxerr I think) reference to _ProgramName. Any ideas? I'd be glad to spill out all my code and write 20 pages about this thing - JUST TO FIX IT!! Thanks in advance. Bryan Bryan Ford //// A computer does what \\\\ Snail: 1790 East 1400 North //// you tell it to do, not \\\\ Logan, UT 84321 \\\XX/// what you want it to do. \\\XX/// Email: FATQW@USU.BITNET \XXXX/ Murphy's Law Calendar 1986 \XXXX/