home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.sys.mac.programmer:20759 comp.lang.c++:18737
- Path: sparky!uunet!spool.mu.edu!sol.ctr.columbia.edu!eff!ssd.intel.com!ogicse!reed!bowman
- From: bowman@reed.edu (BoBolicious)
- Newsgroups: comp.sys.mac.programmer,comp.lang.c++
- Subject: Re: MPW C++: Problems with new and delete?
- Message-ID: <1993Jan6.035034.23163@reed.edu>
- Date: 6 Jan 93 03:50:34 GMT
- Article-I.D.: reed.1993Jan6.035034.23163
- References: <01050014.muu4n1@blanc.north.de>
- Organization: Reed College, Portland, OR
- Lines: 22
-
- In article <01050014.muu4n1@blanc.north.de> jochen@blanc.north.de (Jochen Meyer) writes:
- >I realize that in best case it is hard to diagnose the error due to
- >this description. But has anyone else encountered some similar problem
- >with new and delete? What was the error in her/his case? Does anyone
- >know some workaround? Or does somebody feel helpful enough to look
- >through my class gr_varray (less than 100 lines, I would cheerfully
- >mail you the source ;-) ).
-
- I would *highly* recommend, for starters, that your classes inherit from
- PtrObject if they're pointer-based, which it sounds like they are.
- The PtrObject code, as well as a great article about pointer-based objects
- on the Mac, was in _develop_ awhile ago. You might also try turning on heap
- scrambling in MacsBug, too; it's good for making memory problems go sour
- quickly.
-
- Other than that, don't know what to tell you.
-
- good luck,
- bobo In seeking the unattainable,
- bowman@reed.edu simplicity only gets in the way.
- "On Monday, numbers floated everywhere, and the world was full of
- approximations." -- Spencer Heinz, _The Oregonian_, 1/5/93
-