POV-Ray : Newsgroups : povray.general : POV crash with functions : Re: POV crash with functions Server Time
4 Nov 2024 17:37:57 EST (-0500)
  Re: POV crash with functions  
From: Christoph Hormann
Date: 10 Nov 2003 15:12:02
Message: <c08581-a4b.ln1@triton.imagico.de>
JC (Exether) wrote:
> I tried to post this message three times in P.bugreports and it didn't 
> work, sorry if I'm multiposting.

povray.bugreports is moderated, postings will only occur there if it is 
a confirmed bug.

> So I wrote the following:
> 
> 
> #macro F_Plane ()
>   #local fn_p=function (x,y,z) { y };
>   fn_p
> //  function (x,y,z) { fn_p (x,y,z) }
> #end
> 
> #local F1= F_Plane();
> 
> #declare fn_crash = function(x,y,z) { F1(x,y,z) }
> 
> 
> and got a POV access violation (official Win32 POV (MegaPOV crashes 
> too)). Commented code is a workaround.

It should not crash of course but your code isn't valid syntax, it can't 
work.

Christoph

-- 
POV-Ray tutorials, include files, Sim-POV,
HCR-Edit and more: http://www.tu-bs.de/~y0013390/
Last updated 25 Oct. 2003 _____./\/^>_*_<^\/\.______


Post a reply to this message

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