tomc@mntgfx.mentor.com (Tom Carstensen) (10/11/88)
I recently posted an articale about a fix to a persisent bug in my program when running under Multifinder. Well, it STILL persists!! Now that The Debugger runs under Multifinder, here's the info I have on it. PLEASE HELP if you have ANY IDEAS. I've already wasted TOO much time: The main problem is that any call to _ReleaseResource dies. If I remove the call to ReleaseResource, it dies on THE NEXT call to ReleaseResource. THIS ONLY HAPPENS ON CERTAIN COMPILATIONS OF MY PROGRAM. In one case, removing one NEVER USED function stopped the crash. The machine I'm running on is a Mac II w/ 2.0 Megs. TRACEBACK: ---------- at ADDR--Name------------Calls------- Frame-Addr--Size =81E432 rCO_407+6 bytes in use = 330 =823B30 SectRgn SetEmptyRgn 3CFBFC =407360 proc284 _SectRgn 3CFC38 =40F0CC proc184 _Juggler 3CFC54 =38FF3E c@38FF3E _GetResource 3CFC64 =3BF30A IOCheck NUMTOSTRING 3CFC68 =3BF298 MYRESERROR IOCheck 3CFCEC 78 <--- This is my error =40E5B8 proc160 - - - - 3CFCF4 handling routine =410D8E proc263 proc160 3CFD14 18 =3C7C98 NewWindMenu _ReleaseResource 3CFD2C <------ Here's the call =3BDE30 DoNew NewWindMenu 3CFD74 40 =3BDBFA File_Into_Window DoNew 3CFDC0 30 =3C04F0 OpenOpen File_Into_Window 3CFE2C 50 =3C076E OpenChar OpenOpen 3CFE64 20 =3C5E2C DoTyping OpenChar 3CFE84 18 =382CF8 DoEvent DoTyping 3CFEB0 24 =382970 MainLoop DoEvent 3CFEF4 3C =382892 main MainLoop 3CFF00 =381D90 CMain main 3CFF0C 8 % Discipline, error in Type - RgnHandle , _SectRgn @ PC =407360 proc284+40 % Discipline, error in Type - Handle , _SetHandleSize @ PC =81E444 SetHSize+8 % A-Trap , _SysError @ PC =81E432 rCO_407+6 Final sys error: 81E1 SysError ; (D0/errorCode:OSErr) %% MemErr = -113 memAZErr Address in zone check failed errorCode : 25 dsMemFullEr out of memory / fragmented :------------------------------------------------------------: : | GEnie: T.CARSTENSEN : : Thomas Carstensen | Delphi: CARSTENSEN : : Mentor Graphics | CompuServe: 73627,2762 : : 8500 SW Creekside Pl. | : : Beaverton, OR 97005-7191 | tomc@pdx.MENTOR.COM : : (503) 626-7000 | ...{sequent,tessi,attunix, : : | apollo}!mntgfx!tomc : :------------------------------------------------------------: : If you are sick and tired, of all your dreadful : : dimensions, let me stretch your TIME! : : - Time Operator : :------------------------------------------------------------: