Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!gem.mps.ohio-state.edu!apple!dlyons From: dlyons@Apple.COM (David Lyons) Newsgroups: comp.sys.apple Subject: Re: Speed.... Message-ID: <35955@apple.Apple.COM> Date: 27 Oct 89 03:17:45 GMT References: <8910180053.aa04251@SMOKE.BRL.MIL> <935@friar-taac.UUCP> <1989Oct20.193558.15449@polyslo.CalPoly.EDU> Organization: Apple Computer Inc, Cupertino, CA Lines: 31 In article <1989Oct20.193558.15449@polyslo.CalPoly.EDU> rbannon@cosmos.acs.calpoly.edu.UUCP (Roy Bannon) writes: >I am having a little trouble writing an NDA using the taskmaster to track >the controls. [...] In the action >routine, when the code is 1 (for DAEvent); I call taskmasterda with the >pointer passed to my action routine (params). Sometimes, it returns with error >$0E03. Error $0E03 means that some RESERVED bits in the wmTaskMask field of the extended task record you passed to TaskMasterDA were set. The problem is that you're taking a pointer to an *event record* (16 bytes) and using it as a pointer to an extended task record (more than 16 bytes, including the wmTaskMask field, which you must set). So: copy the event record into your own space, set the wmTaskMask field to something valid, and then call TaskMasterDA with a pointer to your own record--don't give it the same pointer the Desk Manager gave your DA. >[...] How long due messages stay in the center? [...] Messages stay in the MessageCenter until somebody deletes them. I don't think the system ever deletes message 2, and I hope some of your weirdness goes away once you start calling TaskMasterDA as outlined above. -- --Dave Lyons, Apple Computer, Inc. | DAL Systems AppleLink--Apple Edition: DAVE.LYONS | P.O. Box 875 America Online: Dave Lyons | Cupertino, CA 95015-0875 GEnie: D.LYONS2 or DAVE.LYONS CompuServe: 72177,3233 Internet/BITNET: dlyons@apple.com UUCP: ...!ames!apple!dlyons My opinions are my own, not Apple's.