[comp.sys.mac] Recovering from Crash & Stuck Cursor on a Mac+

graifer@net1.UUCP (01/28/87)

Several Weeks Ago, I requested info on recovering from crashes or stuck
cursors on a Mac+.  The following is an abreviation of the responses,
followed by some of my comments:


From abl@ohm.ECE.CMU.EDU  (Tony) Sat Jan 10 10:46:51 1987 
press the right button (the one in the back) and type
   sm f000 a9f4
   g f000
doesn't unlock the cursor, though


From: Matthew J Weinstein <matt@ws.locus.ucla.edu>
G 40F6D8 for return to finder on a +. 


From ucbvax!korn@eris.berkeley.edu (Peter "Arrgh" Korn) 
Use 'RB' to reboot the mac, 'ES' to escape to the shell (Finder), and 'EA' to
exit to the application. 


From seismo!mnetor!yetti!unicus!rae@sdcsvax.UCSD.EDU
  ( Reid Ellis, aka Clith de T'nir) 
Well, I set a command-key equivalent for "Shutdown" in the finder.  It is
command-Q.  So if my mouse is frozen and I want to shut down, I just type
Command-Q and "pt-ting!" it's all set up.   To do this, just run ResEdit or
REdit and edit the MENU resource (I would suggest REdit). 


From: shulman@topaz.RUTGERS.EDU (Jeff Shulman) 
You can type  G 40F6D8  which is the address of the ExitToShell trap
in the CURRENT ROM's.  A more ROM independent method it to type
  PC D000 
  SM PC A9F4 
  G 
which says to store the ExitToShell trap at D000 and these execute it
(the Trap Dispatcher computes the correct address to go to.) 
[This is similar to Tony's suggestion.  Jeff also recommended using
 ResEdit to assign a command letter in the Finder's Special menu.  D.G.]


From: Herb Barad <sdcrdcf!trwrb!trwspf!vito@sdcsvax.UCSD.EDU> 
G 40F6D8 <return>
I know that the TMON debugger has a mechanism to unstick the cursor, 
but I don't think the ROM debugger does.


From: marcus@weyl.Berkeley.EDU (Matthew Marcus) 
Try G 40F6D8. It sometimes bombs when the modem is on. 
There is an FKEY  on Quick and dirty Utilities vol 1 called reset key, 
which when invoked will present a dialog asking whether you wish to
shut down. If you agree then it does a clean shut down (closes open files, 
unmounts volumes, etc.) Unfortunately, the default choice is not to shut 
down, so it doesn't do much good if the mouse is frozen. Fortunately, 
I have a patch, which I would gladly Email to you, which changes the 
default to shutting down. Now I never have to wait for my DataFrame 
to do it's disk check! By the way, Quick and  Dirty Utils vol 1 has to be 
one of the best disks of Mac stuff I have ever seen. It's cheap too. 
Actually, some of the stuff might be a little dated by now.
Another alternative is the TMON debugger. TMON is invoked when 
you have a system error, and it has mouse anti-freeze. 
The reset key is a cheaper alternative. Also, try using menu equivalents
for shutdown while in the finder. 


My Comments:
Using ResEdit to set a Menu Equivelent to Shutdown works great, and is
very easy (I used command-Q).
<interupt>G 40f6d8<return>  usually works, and Tony & Jeff's suggestions
(putting a trap call in memory and going to it) almost always do. 
Curiously, they don't work from MacWrite!
I wasn't able to get to RB/ES/EA method to work; The debugger just
ignored them.
I  haven't tried any of these on anything other than my Mac+/Dataframe20.


Dan Graifer
graifer@net1.UCSD.EDU