Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!munnari.oz.au!metro!seagoon.newcastle.edu.au!mazz From: mazz@iti.org (Richard Mazzaferri) Newsgroups: comp.os.msdos.programmer Subject: TC2.0 drawpoly() fails, with graphresult() returning -6 Summary: Why does it fail? Keywords: TC2.0, graphics Message-ID: Date: 31 May 91 07:13:58 GMT Sender: news@neddy.newcastle.edu.au Distribution: comp Organization: Uni of Newcastle, Australia Lines: 12 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 interesting thing is that requesting a plot on a slightly different scale will result in everything working perfectly. Anyone know what is going on and how to fix it? The poly[] itself only contains just over 600 points, and many of the curves I plot ( successfully ) are longer. Mazz.