Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!julius.cs.uiuc.edu!apple!portal!sv!daven From: daven@svc.portal.com Newsgroups: comp.sys.mac.programmer Subject: Re: TRAP BUG? In SetGrowZone() Message-ID: <1990Dec6.204708.15592@svc.portal.com> Date: 6 Dec 90 20:47:08 GMT References: <1CE00001.m31reu@tbomb.ice.com> Organization: Software Ventures Lines: 30 In article <1CE00001.m31reu@tbomb.ice.com> time@tbomb.ice.com writes: > >I have an application which uses the SetGrowZone() trap to install >a grow zone procedure. > >Now I have discovered that on IIcx's and SE's running System 6.0.7 >the SetGrowZone() returns a nonzero result that does not look like >a valid error code!!!!!!!! > >This appears to be a BUG in SetGrowZone()! > >On my IIfx and my IIx, SetGrowZone() returns noErr, as it should. >On the IIcx it returns a number like $006abcc4. This is not a valid >error code, and it appears to be an address to something. MacsBug >dm command shows "In RAM but not in the Application or System Heaps". > Tim, In C or Pascal, SetGrowZone() is a procedure, not a function. It does not return anything. We've been using SetGrowZone() for years and it has worked just fine for us - but then again we don't test for a return value. -- ------------------------------------------------------------------------------- Dave Newman - Sofware Ventures | daven@svc.portal.com | AppleLink: D0025 Berkeley, CA (415) 644-3232 | AOL: MicroPhone | CIS: 76004,2161 -------------------------------------------------------------------------------