Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!comp.vuw.ac.nz!cavebbs!frank From: frank@cavebbs.gen.nz (Frank van der Hulst) Newsgroups: comp.os.msdos.programmer Subject: Re: TC2.0 drawpoly() fails, with graphresult() returning -6 Keywords: TC2.0, graphics Message-ID: <1991Jun01.091640.19518@cavebbs.gen.nz> Date: 1 Jun 91 09:16:40 GMT References: Organization: The Cave MegaBBS, Public Access Usenet, Wellington, NZ Lines: 18 In article mazz@iti.org (Richard Mazzaferri) writes: >I'm developing an application which uses drawpoly() to put curves on screen. >I have one particular curve ( out of hundreds, so far ) which causes drawpoly() >to fail and graphresult returns -6, which is grNoScanMem - out of memory in >scan fill. I have no idea why this occurs and want to know how to prevent it, >as it's most disconcerting for the user to attempt to plot a curve, and have >everything work except for the actual curve. The TC GRAPHICS library includes a function called _graphsetbuff (or similar; I don't have the manual or program in front of me right now). That specifies how much memory to allocate for scratch-pad when initgraph is called. The default is 4K, so try upping that to maybe 6K. -- Take a walk on the wild side, and I don't mean the Milford Track. Kayaking: The art of appearing to want to go where your boat is taking you.