Path: utzoo!utgpu!water!watmath!clyde!att!pacbell!ames!ll-xn!mit-eddie!uw-beaver!tektronix!sequent!mntgfx!tomc
From: tomc@mntgfx.mentor.com (Tom Carstensen)
Newsgroups: comp.sys.mac.programmer
Subject: Bug in System 6.0, or is it ME?
Message-ID: <1988Jun22.110349.325@mntgfx.mentor.com>
Date: 22 Jun 88 18:03:46 GMT
Organization: Mentor Graphics Corporation, Beaverton Oregon
Lines: 32

I've been using MacNosy alot to do debugging, and every
once in a while I set the Trap Checksum/Disipline on
to more thoroughly check my program.

Every since I started using System 6.0, the debugger always
breaks when exiting a Dialog (ie GetNewDialog - ModalDialog -
CloseDialog).  It complains on the entry to TEDispose, ( I
believe its disposing of its TERecord it used for the dialog) and
I look at the TERec, and it looks like it's trying to dispose
of something that already been disposed of (There are FFFD
in a lot of the field, with the debugger puts there after
a DisposHdl() & DisposPtr().  If I tell the debugger to 
continue on, It breaks at DisposHdl, and the hdl is a
bad ptr (bogus).  This is also preventing me from checking
the rest of my program, since it can never get past this point.

Can anyone comment on this problem.  It there actually a hidden
bug in the CloseDialog routine, or is it my problem?

Note: I'm using CloseDialog instead of DisposDialog becuase
I'm allocating my own storage space for dialogs, and I don't
want it "freed".

:------------------------------------------------------------:
: Tom Carstensen         Usenet: tomc@mntgfx.MENTOR.COM      :
: Mentor Graphics                Delphi: CARSTENSEN          :
:                                GEnie:  CARSTENSEN          :
:                                                            :
:         If you are sick and tired, of all your dreadful    :
:         dimensions, let me stretch your TIME!              :
:                                       - Time Operator      :
:------------------------------------------------------------: