🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

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

#6926
From: Frank van der Hulst
Date: Sat, 01 Jun 1991 09:16
18 lines
1481 bytes
In article <NV.675674038@venus.newcastle.edu.au> 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.
Technical Details
Message-ID: <1991Jun01.091640.19518@cavebbs.gen.nz>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!comp.vuw.ac.nz!cavebbs!frank
References: <NV.675674038@venus.newcastle.edu.au>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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: <NV.675674038@venus.newcastle.edu.au>
Organization: The Cave MegaBBS, Public Access Usenet, Wellington, NZ
Lines: 18