home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / mac / programm / 14549 < prev    next >
Encoding:
Text File  |  1992-08-26  |  946 b   |  31 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!mnemosyne.cs.du.edu!rreid
  3. From: rreid@mnemosyne.cs.du.edu (Mr. Robin R. Reid)
  4. Subject: Help for a new programmer...
  5. Message-ID: <1992Aug26.172453.28395@mnemosyne.cs.du.edu>
  6. Keywords: Inside Macintosh
  7. Organization: University of Denver, Dept. of Math & Comp. Sci.
  8. Date: Wed, 26 Aug 92 17:24:53 GMT
  9. Lines: 20
  10.  
  11. I'm a new programmer who is confused by one of the code samples
  12. in "Inside Macintosh : Files," and I'm hoping someone can help
  13. me to understand what I read there...
  14.  
  15. Listing 1-8 on page 1-22 declares a variable
  16.  
  17.   myBuffer : Ptr;
  18.   
  19. and later allocates the pointer with the call
  20.  
  21.   myBuffer := NewPtr(myLength);
  22.   
  23. but, as far as I can tell, this pointer is not de-allocated
  24. anywhere.  Am I missing something, or is this just an error
  25. in the code?  
  26.  
  27. Also, I was wondering if anyone could offer some help with
  28. the fact that a TEHandle is declared but not used...
  29.  
  30. Thanks in advance!
  31.