[comp.sys.mac.programmer] MacApp ID 32 Crash

wardwell@emily.uvm.edu (Les Wardwell) (06/18/91)

Greetings,

It seems that my MacApp application has decided to start crashing on
non-color quickdraw Macs at TDocument.Close time with an ID 32.

The crash appears to occur when TDocument.Close completes successfully
ForAllWindowsDo(CloseAWindow) and then when TDocument.Free is called,
but before reaching TMyDocument.Free.

Developing under a color quickdraw Mac with The Debugger and stepping thru
the source shows no problems. However, The Debugger doesn't appear to have
enough room on a 4 Mb SE with the .SYM file to aid in tracking down the
bug where it occurs. The Debugger does produce the ID 32, but I'm not
the best asm programmer to decipher what's happening.

Does anyone have any insights as to what steps to take in tracking this
down? BTW, I've added a small 'mem!' resource to clear up stack/heap
collisions, but changing/adding/deleting this doesn't seem to make a 
difference.

I also don't really know what ID 32 is? It seems to be missing from most
error lists and appears to be as elusive as the infamous TN#31.

Thanks in advance,
Les Wardwell
Manock Comprehensive Design
S. Burlington, VT