POV-Ray : Newsgroups : povray.general : Problem: Bad code causes access violation exception : Re: Problem: Bad code causes access violation exception Server Time
4 Aug 2024 22:11:38 EDT (-0400)
  Re: Problem: Bad code causes access violation exception  
From: Tor Olav Kristensen
Date: 25 Jan 2003 13:15:15
Message: <Xns930EC46FEF678torolavk@204.213.191.226>
Tor Olav Kristensen <tor### [at] hotmailcom> wrote in 
news:Xns### [at] 204213191226:

> 
> This (bad) code;
> 
> 
> #declare AA = array[1] { x }
> #declare AA = #declare AA[0] = y;
> #declare AA = #declare AA[0] = z;
> 
> plane { y, 0 }
> 
> 
> - results in this error message:
> 
> "The POV-Ray core rendering code caused an access violation exception."
> 
> - when I run it in POV-Ray for Windows v3.5 
> 
> POV-Ray is not shut down after this error
> message (and is able to render other scenes
> correctly).
> 
> 
> Can anyone else confirm this behaviour ?


I had hoped that this could be tested on
a MAC and a Linux machine too.


Further testing shows that this code:


#declare AA = array[1]
#declare AA = #declare AA = y;
#declare AA = #declare AA = z;

sphere { 0*y, 0 }


- leads to POV-Ray giving this error
message in the Messages window:

"Parse Error: Attempt to free NULL pointer
(File: ..\..\source\parse.cpp Line: 8222)."



I wonder if this is the same bug, or if
this one is somehow triggered by the zero
radius sphere. When I change the radius to
1 I get the same "Access violation" error
as with the first script I listed.


Tor Olav


Post a reply to this message

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