home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / mac / programm / 14397 < prev    next >
Encoding:
Internet Message Format  |  1992-08-23  |  1.9 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!rutgers!concert!samba!usenet
  2. From: Bathsheba.Grossman@bbs.oit.unc.edu (Bathsheba Grossman)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Basic prog help
  5. Message-ID: <1992Aug24.033509.12642@samba.oit.unc.edu>
  6. Date: 24 Aug 92 03:35:09 GMT
  7. Sender: usenet@samba.oit.unc.edu
  8. Organization: Extended Bulletin Board Service
  9. Lines: 31
  10. Nntp-Posting-Host: lambada.oit.unc.edu
  11.  
  12. I'm writing my first commercial app, but my boss doesn't know that.  It's way
  13. bigger than anything I've done before, and it's developed some
  14. nonrepeatable memory-flying-around kinds of bugs.  (Eg, big hash-table of
  15. structs, and at random times a few bits of one struct get blasted.)  Not to
  16. mention the occasional bomb for no apparent reason.
  17.  
  18. Also, I'm having a great deal of trouble handling low-memory conditions.
  19. I check all NewHandle and SetHandleSize's, (and GetResources
  20. and NewRgns, &ct, too) and always keep an emergency slushpile big
  21. enough to display my error dialog (60K), but sometimes it still bombs or
  22. freezes, not very repeatably.
  23.  
  24. Could some sage of programming give me a few strategy tips for dealing
  25. with these sorts of things?  I don't have the right kind of degree, so my
  26. grasp of the conventional wisdom in these matters is weak.
  27.  
  28. Also, is there something I can read so as to better understand the use of
  29. MacsBug?  I have a nodding acquaintance with assembler, but either it's not
  30. enough or I'm missing the point.  For instance, can I get it to break
  31. when a certain memory location changes value?
  32.  
  33. Email me at     sheba@mohlsun.physics.upenn.edu
  34. or post here - I read this group religiously.
  35.  
  36. Thanks,
  37. Sheba
  38. --
  39.    The opinions expressed are not necessarily those of the University of
  40.      North Carolina at Chapel Hill, the Campus Office for Information
  41.         Technology, or the Experimental Bulletin Board Service.
  42.            internet:  bbs.oit.unc.edu or 152.2.22.80
  43.