home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / mac / programm / 18328 < prev    next >
Encoding:
Internet Message Format  |  1992-11-12  |  1.5 KB

  1. Path: sparky!uunet!pageworks.com!world!eff!iWarp.intel.com|ogicse!das-news.harvard.edu!husc-news.harvard.edu!husc9!winer
  2. From: winer@husc9.Harvard.EDU (Adam Winer)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: LDispose problem!
  5. Message-ID: <1992Nov12.115406.17372@husc3.harvard.edu>
  6. Date: 12 Nov 92 16:54:05 GMT
  7. Article-I.D.: husc3.1992Nov12.115406.17372
  8. Sender: winer@husc9 (Adam Winer)
  9. Distribution: world
  10. Organization: Harvard University Science Center
  11. Lines: 26
  12. Nntp-Posting-Host: husc11.harvard.edu
  13.  
  14. I've been having a problem with LDispose.  I'm using a
  15. custom LDEF, and using the debugging tool DisposeResource that
  16. Apple has on their ftp server.  For those unfamiliar with this
  17. INIT, it breaks into the debugger if you every try to call
  18. DisposHandle on a handle with the resource bit set.
  19.  
  20. Anyway, it's telling me that whenever I call LDispose, LDispose
  21. is disposing of a resource handle, but only when I call LDispose
  22. on a list with the custom LDEF.  This custom LDEF uses no
  23. storage of its own (i.e., it ignores initialization and close
  24. messages).  Moreover, DisposeResource claims that this happens
  25. twice per resource call.
  26.  
  27. My question is:  is there something wrong with my program,
  28. or is there a mistake in either the List Manager or DisposHandle?
  29. The only resource that could be disposed of (that I can think of)
  30. is the LDEF resource.  But then how am I responsible for it
  31. being disposed?
  32.  
  33. Thanks a lot,
  34. Adam
  35.  
  36. -- 
  37. Adam Winer        | The number you have reached is imaginary.
  38. WINER@HARVARD.EDU    | Please rotate your phone 90 degrees and
  39.                         | try again.
  40.