jnh@ecemwl.ncsu.edu (Joseph N. Hall) (10/16/89)
I was porting a UNIX application that makes heavy use of calloc() and free() the other day, and watched it die repeatedly with the DebugStr "attempt to free". After I replaced calloc() with NewPtrClear() and free with DisposPtr() everything worked great ... is this a known bug? The application made use of a lot of small, differently-sized blocks; i.e., short strings. If the "improved" allocator in the MPW C libraries maintains free lists of small blocks, maybe it's breaking under the strain of too many different sizes ... ? It irritates me that the library source isn't supplied with MPW; it sure would have made debugging a hell of a lot simpler. v v sssss|| joseph hall || 4116 Brewster Drive v v s s || jnh@ecemwl.ncsu.edu (Internet) || Raleigh, NC 27606 v sss || SP Software/CAD Tool Developer, Mac Hacker and Keyboardist -----------|| Disclaimer: NCSU may not share my views, but is welcome to.