CompuServe Messages

#Manx/AllocRemember()

    06-Dec-87 21:41:36
Sb: #Manx/AllocRemember()
Fm: Richard Rae/SYSOP 76703,4253
To: ALL
Well, I've hit another one I'm at a loss to explain. This one has to do with the AllocRemember() function as called from C. Glenn and BobR and I beat on this in CO tonight but couldn't get anywhere with it. Here's a minimal program: #include <functions.h> #include <INTUITION/intuition.h> #include <exec/memory.h> #define NULL 0L struct IntuitionBase *IntuitionBase; struct Remember *RememberKey; void main() { char *addr; RememberKey=NULL; addr=AllocRemember(&RememberKey,320L,0L); FreeRemember(&RememberKey,TRUE); } This little baby crashes on the AllocRemember call with an Illegal Instruction system trap vector (that's an 0…04 for those of you who read GURUeze). I thought I was doing something wrong in the call for Manx, but BobR compiled the pre-pared-down version under Lattice and _it_ crashed too, in exactly the same manner. This surprises me, since the code is almost verbatim from the RKM. I'd surely appreciate it if someone could point out where the problem is here. . Rick P.S. As to my teaser message, I'm sorry to say that the method for stacking two Insiders didn't pan out. Sorry to get your hopes up…