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