home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / mac / programm / 14731 < prev    next >
Encoding:
Text File  |  1992-08-30  |  1.5 KB  |  45 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!cis.ohio-state.edu!zaphod.mps.ohio-state.edu!cs.utexas.edu!sun-barr!ames!pacbell.com!tandem!tomh.cpd.tandem.com!user
  3. From: Holland_Thomas@Tandem.Com (Tom Holland)
  4. Subject: Error #-108 during shutdown
  5. Message-ID: <Holland_Thomas-290892130251@tomh.cpd.tandem.com>
  6. Followup-To: comp.sys.mac.programmer
  7. Sender: news@tandem.com
  8. Nntp-Posting-Host: tomh.cpd.tandem.com
  9. Organization: Tandem Computers
  10. Date: Sat, 29 Aug 1992 20:24:12 GMT
  11. Lines: 32
  12.  
  13. Hi ,
  14.  
  15.   I'm working on a program which loads a code resource into the shutdown
  16. manager 
  17. for execution during a Restart. When the code resource is executed, the
  18. application 
  19. which loaded it is no longer running.  Amongst its  duties, this code
  20. resource loads
  21. a 'snd ' resource from a resource file and plays it. For short sounds, this
  22. works fine.
  23. The problem I have run into is that for larger (~40K) sounds
  24. Get1IndResource produces
  25. an error -108 (memory full error -- not enough room in heap zone).  
  26.  
  27. Since my code resource is executed by the shutdown manager, my
  28. understanding is that
  29. the heap in question is the system heap. Can the system heap really not
  30. have 40KB to spare?
  31. The relevant characteristics of my system are: IIci, 20MB ram,  System
  32. 7.0.1  updated, 
  33. Think C 5.0.1. 
  34.  
  35. Any comments or thoughts on this would be appreciated. Thanks.
  36.  
  37.  
  38. Tom Holland
  39.  
  40. Holland_Thomas@Tandem.Com,       |Soap and education are not as sudden as a
  41.  
  42. Tandem Computers, Cupertino Ca.  |massacre but are more deadly in the long
  43. run.
  44.                                  |    - Mark Twain
  45.