[comp.sys.mac.programmer] ResEdit 2.0b2, GateKeeper 1.1.1 incompatibility

nick@cs.edinburgh.ac.uk (Nick Rothwell) (10/05/90)

I've found what seems to be a rather obscure incompatibility between
ResEdit 2.0b2 and GateKeeper 1.1.1. When GateKeeper is active, ResEdit
will *sometimes* bomb out when trying to create or edit MENU's. When
it does so, it stamps on its preferences file, so the usual
let-try-it-again-without-any-INITs trick doesn't work (that kept me
guessing for a while...)

The weird thing is that I'm running GateKeeper in notify-only mode, so
it's only throwing up an alert and continuing when ResEdit makes any
alterations. Hitting GateKeeper's override button seems to fix it
sometimes (I haven't tested this exhaustively); also, granting ResEdit
Res(Self) privileges seems to be a fix.

As I say: GateKeeper is only running in Notify mode, so the privileges
it grants to ResEdit should be irrelevant. Perhaps there's a problem
like the one with, what is it, MacDraw II?

Configuration: Mac SE/30 4/40, System 6.0.4. The problem *doesn't*
manifest itself on a Mac Plus, 6.0.4, with GateKeeper 1.1.

		Nick.


-- 
Nick Rothwell,	Laboratory for Foundations of Computer Science, Edinburgh.
		nick@lfcs.ed.ac.uk    <Atlantic Ocean>!mcsun!ukc!lfcs!nick
~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~
 "Now remember - and this is most important - you must think in Russian."

chrisj@ut-emx.uucp (Chris Johnson) (10/06/90)

In article <523@skye.cs.ed.ac.uk> nick@lfcs.ed.ac.uk writes:
>I've found what seems to be a rather obscure incompatibility between
>ResEdit 2.0b2 and GateKeeper 1.1.1. When GateKeeper is active, ResEdit
>will *sometimes* bomb out when trying to create or edit MENU's. When
>it does so, it stamps on its preferences file, so the usual
>let-try-it-again-without-any-INITs trick doesn't work (that kept me
>guessing for a while...)

For what it's worth, I haven't seen any indication of a conflict between
Gatekeeper and ResEdit 2.0b2.  Further, there really *shouldn't* be one
(for what statements like that are ever worth) because editing menus 
requires no Resource or File privileges of any kind.

However, you do have the current version of Gatekeeper, but do you also
have the current version of Gatekeeper Aid, which is 1.0.2?

>The weird thing is that I'm running GateKeeper in notify-only mode, so
>it's only throwing up an alert and continuing when ResEdit makes any
>alterations. Hitting GateKeeper's override button seems to fix it
>sometimes (I haven't tested this exhaustively); also, granting ResEdit
>Res(Self) privileges seems to be a fix.

Yipes.  Unless you're actually using ResEdit to edit itself (which could
cause crashes in and of itself), ResEdit won't need Res(Self) privileges.
Normally, Res(Other, Sys) and File(Other) privileges are sufficient.

>As I say: GateKeeper is only running in Notify mode, so the privileges
>it grants to ResEdit should be irrelevant. Perhaps there's a problem
>like the one with, what is it, MacDraw II?

The problem with MacDraw II was in Gatekeeper's patch to PBSetFInfo.  This
problem has been found and fixed.  The fix for existing versions of Gate-
keeper is retroactive and is present in Gatekeeper Aid 1.0.2.  However,
PBSetFInfo would not be used in the process of editing menus, so this
problem (if it is a problem) should be unrelated.

If anyone has information on this problem or other problems, please let me 
know.

Thanks,
----Chris (Johnson)
----Author of Gatekeeper
----chrisj@emx.utexas.edu

b_murphy@fennel.cc.uwa.oz.au (10/08/90)

In article <523@skye.cs.ed.ac.uk>, nick@cs.edinburgh.ac.uk (Nick Rothwell) 
writes:
> I've found what seems to be a rather obscure incompatibility between
> ResEdit 2.0b2 and GateKeeper 1.1.1. When GateKeeper is active, ResEdit
> will *sometimes* bomb out when trying to create or edit MENU's. When
> it does so, it stamps on its preferences file, so the usual
> let-try-it-again-without-any-INITs trick doesn't work (that kept me
> guessing for a while...)
> 
[..] 
> 		Nick.
> 
> 
> -- 
> Nick Rothwell,	Laboratory for Foundations of Computer Science, Edinburgh.
> 		nick@lfcs.ed.ac.uk    <Atlantic Ocean>!mcsun!ukc!lfcs!nick
> ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~
>  "Now remember - and this is most important - you must think in Russian."

I've come across the same problem, ResEdit 2.0b2 crashing on *some* MENU edits. 
I'm not running GateKeeper, but I've found that if you open the resource using
'Open Using Template ...', the crash doesn't happen. (I've also found this
with other resources, but memory fails me.)

BTW, you might consider getting rid of GateKeeper and using Disinfectant 2.1.
It can install an INIT that does a *lot* better job than GateKeeper, and
more important, it only notifies on *REAL* virus attacks, not on things
that merely look like attacks. Also it's updated as soon as a new virus is
found.

-- 
-o (short for On-no)

     ()/)/)()  can be  r e a c h e d  at  B_MURPHY@VAXA.UWA.OZ.AU
_____________________________________________________________________
        The net never sleeps, come to think of it, do I ever?
---->  Thinking is dangerous, subversive and leads you astray.  <----

nick@cs.edinburgh.ac.uk (Nick Rothwell) (10/08/90)

I've managed to track this problem down over the weekend. No, I don't
know what it *is*, but I know what it *isn't*...

Apologies, Chris: Gatekeeper wasn't to blaim. At the time, altering
Gatekeeper's settings was allowing ResEdit 2.0 to run - sometimes.

The problem (you'll recall) is that ResEdit 2.0b2 was bombing when I
tried to use the MENU editor. Eventually, I tracked it down to my
System Folder. *Not* the System files - the folder. In the end, I
created a new folder, copied all the system files into it, blessed the
new folder, and deleted the old one. End of problem.

I don't know what was causing this - possibly some strange permissions
on the folder or something - but it seems fine now. Weird...

		Nick.

-- 
Nick Rothwell,	Laboratory for Foundations of Computer Science, Edinburgh.
		nick@lfcs.ed.ac.uk    <Atlantic Ocean>!mcsun!ukc!lfcs!nick
~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~
 "Now remember - and this is most important - you must think in Russian."

mxmora@unix.SRI.COM (Matt Mora) (10/09/90)

In article <538@skye.cs.ed.ac.uk> nick@lfcs.ed.ac.uk writes:
>I've managed to track this problem down over the weekend. No, I don't
>know what it *is*, but I know what it *isn't*...
>
>
>I don't know what was causing this - possibly some strange permissions
>on the folder or something - but it seems fine now. Weird...
>

I always had problems trying to use the menu editor. After reading your article
I went and deleted the res edit pref file and bingo it started working.

Next time you might want to give it a try.


>-- 
>Nick Rothwell,	Laboratory for Foundations of Computer Science, Edinburgh.










-- 
___________________________________________________________
Matthew Mora                |   my Mac  Matt_Mora@sri.com
SRI International           |  my unix  mxmora@unix.sri.com
___________________________________________________________