Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!mips!apple!dlyons From: dlyons@Apple.COM (David A. Lyons) Newsgroups: comp.sys.apple2 Subject: Re: Stack problems with IIGS code resources Keywords: Apple IIGS, programming, code resources Message-ID: <52750@apple.Apple.COM> Date: 11 May 91 05:46:11 GMT References: <1991May11.022741.25916@colorado.edu> Organization: Apple Computer Inc., Cupertino, CA Lines: 20 In article <1991May11.022741.25916@colorado.edu> hartkopf@spot.Colorado.EDU (Jeff Hartkopf) writes: >Is there anything weird to know about the stack when using code resources? Nope, once you've got your resource loaded into memory, it's just code. Any weirdness going on must be because of a misunderstanding between the routine and the caller about how parameters are being passed. How are you calling the code resource from C? I especially want to see the function itself, its declaration in the file you are calling it from, and the expression that actually calls it. Perhaps you've declared the routine as "pascal" style in one place but not the other? -- David A. Lyons, Apple Computer, Inc. | DAL Systems Apple II System Software Engineer | P.O. Box 875 America Online: Dave Lyons | Cupertino, CA 95015-0875 GEnie:DAVE.LYONS CompuServe:72177,3233 Internet:dlyons@apple.com My opinions are my own, not Apple's.