[comp.sys.mac.programmer] MacApp handles problem

strasser@psych.psy.uq.oz (Michael Strasser) (05/03/90)

I have a problem getting a complex program to run with MacApp 2.0b9,
having just upgraded from 2.0b5, with which it ran OK.

The program crashes or hangs the machine, sometimes going into the
debugger with the object discipline failure:

	 The handle is not from our Zone
	Object that failed discipline = $00322D74
	ProgramBreak:
	stopped at Break FAILNONOBJECT Seg#: 1

The problem does not always occur with the same object -- one time I
found it was a list of objects maintained by my code, and another time
it was gDocList which failed.  The only lead I have is that it seems
to occur somewhere during the TApplication.OpenNew sequence of things --
I can start up with old documents and read in old ones (I don't know 
about Revert yet), but not open new ones.

I suspect that it is an unitialized field/pointer problem, but it
may be how I'm handling memory.  Does anyone have any ideas?  Perhaps
there is something the program has got away with in the past, but
can't do now.

Mike Strasser
Psychology Department
University of Queensland