[gradsusr] Memory Allocation Error When Using PRINTIM
Arlindo da Silva
dasilva at alum.mit.edu
Wed Dec 1 20:07:30 EST 2010
On Wed, Dec 1, 2010 at 7:59 PM, Jennifer Adams <jma at cola.iges.org> wrote:
> Hi, Stephen --
> The error message you're seeing occurs when the printim code tries to
> allocate an array that contains the vertices of a filled polygon. It may be
> that your shapefiles have single polygons with so many vertices (e.g. the
> one that fills in most of Canada) that your 3.2Gb of RAM is not enough, or
> maybe an integer isn't big enough to represent the number of elements in the
> array, so it passes malloc some junk and you get an error. To complicate
> things, you are also using a deprecated shapefile interface that I didn't
> write.
>
> See if you can reliably reproduce this error with the latest COLA version
> of GrADS. If so, then send me the simplest possible script and the required
> shapefiles, and I will try to reproduce the error on my own system that has
> lots and lots of available memory.
>
I agree, the new shapefile interface is the way to go. The latest win32
superpack 2.0.a9.oga.1 has exactly the same shapefile code that Jennifer
wrote, you could try that as well.
Arlindo
--
Arlindo da Silva
dasilva at alum.mit.edu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20101201/beb51bf4/attachment-0003.html
More information about the gradsusr
mailing list