[comp.sys.mac.programmer] Zortech C++ crashes MPW - advice needed

nagle@well.sf.ca.us (John Nagle) (06/17/91)

     In yet another problem with Zortech C++ for the Macintosh, I
have a program which causes the compiler to print some error message
and then crash MPW with the alert "The application MPW(1) unexpectedly
quit".  Unfortunately, the MPW worksheet closes before I am able to read
the error message displayed by the crashing compiler.  After restart,
updates to the worksheet have been lost.  

     Is there some way I can preserve the error message before the
compiler crashes MPW, short of videotaping the screen?

					John Nagle

dorner@pequod.cso.uiuc.edu (Steve Dorner) (06/17/91)

>     Is there some way I can preserve the error message before the
>compiler crashes MPW, short of videotaping the screen?

Sure.  Install Macsbug.  The top-left key on your keyboard (esc or '~)
will then toggle you between Macsbug's screen and the Mac screen.
--
Steve Dorner, U of Illinois Computing Services Office
Internet: s-dorner@uiuc.edu  UUCP: uunet!uiucuxc!uiuc.edu!s-dorner

kc@Apple.COM (Kurt Clark) (06/17/91)

I would try to set ATrap breaks on SysError and ExitToShell and see if that 
catches it.

If it is the shell and not the compiler that is going off into the weeds,
you should be able to set a MacsBug break on StopTool and figure out what
is happening.

lotsa luck!
-Kurt

nicky@apple.apple.com (Nick Pilch) (06/19/91)

RE: Catching compiler output before app quits:

Redirect compiler diagnostic output to a file. If you're lucky, the file
buffers will be flushed before MPW dies and the file will contain the text.

Nick Pilch
Development Systems Group
Apple Computer
nicky@apple.apple.com
AppleLink: NICK.PILCH
in@crdgw1.crd.ge.com
X-Questions-to: ibmbin-request@crdgw1.crd.ge.com

Checksum: 1279979164  (Verify with "brik -cv")
Posting-number: Volume 12, Issue 237
Submitted-by: davidsen@sixhub.uucp (Bill Davidsen)
Archive-name: fraint16/part06


fraint16 part06/16
BEGIN--cut here--cut here
M#-[Q^V``(S(00,<HNI^.2;`#P\)`AP8ZM:"JT_GJ_@`.6A=J5?!Y1#$DEF!2
M[>!QHI`9/T%%,(5L"+`"4C$*H/`3%;`(38`K78`@R=8'.%0'"+`.0@`).T`$
M!B`')7`'$K`#7$``<N`!=[``.\`$`B`'%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