🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #6908

TC2.0 drawpoly() fails, with graphresult() returning -6

#6908
From: Richard Mazzaferri
Date: Fri, 31 May 1991 07:13
12 lines
1267 bytes
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.
Technical Details
Message-ID: <NV.675674038@venus.newcastle.edu.au>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!munnari.oz.au!metro!seagoon.newcastle.edu.au!mazz

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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: <NV.675674038@venus.newcastle.edu.au>
Date: 31 May 91 07:13:58 GMT
Sender: news@neddy.newcastle.edu.au
Distribution: comp
Organization: Uni of Newcastle, Australia
Lines: 12