POV-Ray : Newsgroups : povray.beta-test : splinefollow : Re: splinefollow Server Time
19 Apr 2024 23:39:42 EDT (-0400)
  Re: splinefollow  
From: clipka
Date: 27 Feb 2016 08:55:18
Message: <56d1aac6@news.povray.org>
Am 27.02.2016 um 14:04 schrieb Le_Forgeron:

> traced to se.resize()
> 
> void mkfree(GenericSpline * sp, SplineEntryList::size_type i)
> {
>     SplineEntryList::size_type j;
>     SplineEntryList& se = sp->SplineEntries;
> 
>     se.resize(se.size()+1);
>     for (j=sp->SplineEntries.size()-1; j>i; j--)
>         se[j] = se[j-1];
> }
> 
> But it might be due to a previous memory corruption because the
> segfault is due to malloc.c, a code that is safe as long as memory is
> not corrupted.

`se.resize()` is `std::vector::resize()`, so yes, I guess we can safely
presume that the error is somewhere else ;)


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.