Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!uakari.primate.wisc.edu!sdd.hp.com!decwrl!ucbvax!unisoft!hoptoad!farcomp!murat From: murat@farcomp.UUCP (Murat Konar) Newsgroups: comp.sys.mac.programmer Subject: Re: TC4.0: Odd Address/Address Error, using SetCtlAction() Message-ID: <218@farcomp.UUCP> Date: 24 Jul 90 19:27:02 GMT References: <10752@odin.corp.sgi.com> Reply-To: murat@farcomp.UUCP (Murat Konar) Organization: Farallon Computing Inc. Berkeley, CA Lines: 18 In article <10752@odin.corp.sgi.com> myoung@joker.asd.sgi.com (Mark Young) writes: >I've been trying to implement a scrollbar in a dialog menu. Everything >seems to work Ok (the up/pageup/down/pagedown parts) until I try to move >the thumb widget. If I'm in the debugger, I get an odd address message >with the pc at 80157c (system 6.02). If I'm not in the debugger, macsbug >gives me an address error. > >when in the debugger, I can trace the action routine to the point where it You did remember to declare your action routine as pascal didn't you? I was helping a guy with similar symptoms (crash on return) and this was the problem. The ROM expects routines to have Pascal calling (and returning) conventions. -- ____________________________________________________________________ Have a day. :^| Murat N. Konar murat@farcomp.UUCP -or- farcomp!murat@apple.com