Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!decwrl!sun!pitstop!sundc!seismo!uunet!lts!amanda From: amanda@lts.UUCP (Amanda Walker) Newsgroups: comp.sys.mac.programmer Subject: Re: List Manager Problem Message-ID: <936@lts.UUCP> Date: 13 Mar 89 16:37:39 GMT References: <11032@ut-emx.UUCP> <6704@hoptoad.uucp> <11103@ut-emx.UUCP> <6730@hoptoad.uucp> <27153@apple.Apple.COM> <6756@hoptoad.uucp> Reply-To: amanda@lts.UUCP (Amanda Walker) Organization: InterCon Systems Corporation, Reston, VA Lines: 33 tim@hoptoad.UUCP (Tim Maroney) writes: In article <27153@apple.Apple.COM> han@Apple.COM (Byron Han, wyl E. coyote ) writes: >Stating that you must create a list via LNew with a nonzero number of >cells is incorrect. I do it all the time with both standard and custom >LDEF's. Well, Byron, I've tried to do it time and again, as well as to remove cells in such a way that none are left in the list. I get crashes when I create it with (0, 0, 1, 0), and display anomalies when I remove the last cell of a list that was created originally with (0, 0, 1, 1). The crashes and anomalies go away when I make sure there is always one cell. I've done this with both standard LDEF 0 and my own LDEFs, which I've been writing for years now. Well, Tim, it must be you :-). Like Byron, I've never had a problem, either with the standard LDEF or with my own. Here is a real live code fragment (MPW C 3.0) from the program I am running on my Mac at this very moment: SetRect(&dataBounds,0,0,1,0); cSize.h = tempRect.right - tempRect.left; cSize.v = 16; localfiles = lnew(&tempRect,&dataBounds,&cSize,128,userftpdlog,1,0,0,1); LDoDraw(1, localfiles); Perhaps if you could post a small piece of code that would duplicate the crash, it might shed some light on the difficulty you're having... -- Amanda Walker, InterCon Systems Corporation amanda@lts.UUCP / ...!uunet!lts!amanda / 703.435.8170 -- C combines the flexibility of assembler with the power of assembler.