|
 |
hi,
"Chris R" <car### [at] comcast net> wrote:
> I have been experiencing crashes running the latest beta of POV-Ray v3.8 (Win64)
> when trying to call a spline. The narrowed it down to a few lines of code that
> causes the crash:
>
> #macro make_spline()
> #local _s = spline {
> quadratic_spline
> 0, <0, 0, 0>,
> 1, <0, 0, 1>,
> 2, <1, 0, 2>,
> 3, <2, 1, 3>
> }
> _s
> #end
>
> #local myspline = spline { make_spline() }
>
> #debug concat("_pt=<", vstr(3, myspline(0), ",", 0, 3), ">\n")
>
> The contents of the spline don't seem to matter nor does the type of spline.
> The result is a memory access violation.
my self compiled beta.2 (Linux) too crashes, same error I think. the
alpha.9945627 outputs the 'pt_' ok.
changing the macro to
#macro make_spline()
spline {
quadratic_spline
0, <0, 0, 0>,
1, <0, 0, 1>,
2, <1, 0, 2>,
3, <2, 1, 3>
}
#end
gives me 'Parse Error: Spline must have at least one entry.', and no crash.
regards, jr.
Post a reply to this message
|
 |