home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / mac / programm / 18797 < prev    next >
Encoding:
Internet Message Format  |  1992-11-22  |  866 b 

  1. Path: sparky!uunet!think.com!ames!data.nas.nasa.gov!taligent!apple!grobbins
  2. From: grobbins@Apple.COM (Grobbins)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: Inside Mac VI: Time Manager code bugs?
  5. Message-ID: <74590@apple.apple.COM>
  6. Date: 23 Nov 92 03:33:51 GMT
  7. References: <1992Nov22.032228.16707@mcs.drexel.edu>
  8. Organization: Mac System Software Special Investigations
  9. Lines: 16
  10.  
  11. In article <1992Nov22.032228.16707@mcs.drexel.edu> urritche@mcs.drexel.edu (Ralph Paul Ritchey) writes:
  12. >What is the problem?
  13. >...
  14. > procedure installTMTask;
  15. >  var
  16. >   mytminfo: tminfo;
  17.  
  18. The task record is being declared as a local variable and
  19. allocated on the stack by the install routine.  As soon as
  20. the install routine returns, the record evaporates...  and
  21. the time manager is left without a task record use.
  22.  
  23.  
  24. Grobbins          grobbins@apple.com
  25.  
  26. Usual disclaimers apply.
  27.