[net.micro.mac] SetEventMask Buggy?

DMB@PSUVMA.BITNET (10/09/86)

   Anyone have this problem?
     You try to set the event mask to something other than what it is and
     it crashes the system?

    Specifically SetEventMask(EveryEvent);

    I wrote my own code to manipulate address $144 (egads not hard coded
    addressing) and the event mask works fine.

    What's wrong with Apple's version? After poking around in memory after
    calling there seteventmask, i noticed that the actual queue address
    contents are screwed up!!?!?, and not the event mask address 144?

    Is it me, or what?



                      dave brosius at psuvma

stew@endor.harvard.edu (Stew Rubenstein) (10/13/86)

In article <7819DMB@PSUVMA> DMB@PSUVMA.BITNET writes:
>
>   Anyone have this problem?
>     You try to set the event mask to something other than what it is and
>     it crashes the system?
>
>    Specifically SetEventMask(EveryEvent);

You didn't say what development environment you are using, but I bet it's
Lightspeed C.

This is a known bug.  Their SetEventMask uses a MOVE.L where it should
use a MOVE.W.  You can 1) patch the MacTraps library (using FEdit,
Search for: 225F 21DF 0144 4ED1
Change to:  225F 31DF 0144 4ED1
) or 2) Use a line like
	SysEvtMask = EveryEvent;  /*  SysEvtMask is a lomem global defined
					in EventMgr.h */
or 3) Wait for the new version of LightSpeed C due out at the end of the month.

Stew